X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FRequestArguments.pm;h=ad9280e4e477d6d9f95ba41bab8d6aa7907dead5;hb=609916e5de6201b2e2212328153657194b41a730;hp=5dedb28e9f3795bd4003cf8b456e102bcb57be9a;hpb=3300302344139421414886ed813a5376e8ff42ee;p=catagits%2FCatalyst-Controller-DBIC-API.git diff --git a/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm b/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm index 5dedb28..ad9280e 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}; } ); @@ -488,7 +488,6 @@ format_search_parameters iterates through the provided params ArrayRef, calling method format_search_parameters => sub { - $DB::single = 1; my ($self, $params) = @_; my $genparams = []; @@ -509,7 +508,6 @@ generate_column_parameters recursively generates properly aliased parameters for method generate_column_parameters => sub { - $DB::single = 1; my ($self, $source, $param, $join, $base) = @_; $base ||= 'me'; my $search_params; @@ -553,7 +551,6 @@ generate_parameters_attributes takes the raw search arguments and formats the pa method generate_parameters_attributes => sub { - $DB::single = 1; my ($self, $args) = @_; return ( $self->format_search_parameters($args), $self->search_attributes ); @@ -588,6 +585,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}; }