X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FRequestArguments.pm;h=54ec8ebf30797da2f94a54c3b73de1aaa0217fa5;hp=5dedb28e9f3795bd4003cf8b456e102bcb57be9a;hb=fa2501f0e73eb2e57f012f53b43d8a567e9e1c41;hpb=3300302344139421414886ed813a5376e8ff42ee diff --git a/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm b/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm index 5dedb28..54ec8eb 100644 --- a/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm +++ b/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm @@ -471,10 +471,10 @@ request_data holds the raw (but deserialized) data for ths request $self->_set_as($new->{$controller->as_arg}) if exists $new->{$controller->as_arg}; $self->_set_grouped_by($new->{$controller->grouped_by_arg}) if exists $new->{$controller->grouped_by_arg}; $self->_set_ordered_by($new->{$controller->ordered_by_arg}) if exists $new->{$controller->ordered_by_arg}; - $self->_set_search($new->{$controller->search_arg}) if exists $new->{$controller->search_arg}; $self->_set_count($new->{$controller->count_arg}) if exists $new->{$controller->count_arg}; $self->_set_page($new->{$controller->page_arg}) if exists $new->{$controller->page_arg}; $self->_set_offset($new->{$controller->offset_arg}) if exists $new->{$controller->offset_arg}; + $self->_set_search($new->{$controller->search_arg}) if exists $new->{$controller->search_arg}; } ); @@ -588,6 +588,7 @@ This builder method generates the search attributes elsif(!$self->has_page && defined($search_attributes->{offset}) && defined($search_attributes->{rows})) { $search_attributes->{page} = $search_attributes->{offset} / $search_attributes->{rows} + 1; + delete $search_attributes->{offset}; }