Revision 124e72be
Von Moritz Bunkus vor fast 10 Jahren hinzugefügt
SL/Controller/Helper/GetModels/Paginated.pm | ||
---|---|---|
32 | 32 |
my $source = $self->get_models->source; |
33 | 33 |
|
34 | 34 |
my $from_form = { |
35 |
page => $source->{ $self->form_params->[0] } || 1, |
|
36 |
per_page => $source->{ $self->form_params->[1] } * 1,
|
|
35 |
page => $source->{ $self->form_params->[0] } || 1,
|
|
36 |
per_page => ($source->{ $self->form_params->[1] } // 0) * 1,
|
|
37 | 37 |
}; |
38 | 38 |
|
39 | 39 |
# my $priv = _priv($self); |
Auch abrufbar als: Unified diff
Paginated-Controller-Helfer: undef-Warnungen vermeiden