|
Lines 161-170
controller, and thus shouldn't be called twice in it.
Link Here
|
| 161 |
$c->extract_reserved_params($args); |
161 |
$c->extract_reserved_params($args); |
| 162 |
|
162 |
|
| 163 |
if ( exists $reserved_params->{_order_by} ) { |
163 |
if ( exists $reserved_params->{_order_by} ) { |
|
|
164 |
|
| 165 |
# convert to arrayref if it is a single param, to keep code simple |
| 166 |
$reserved_params->{_order_by} = [ $reserved_params->{_order_by} ] |
| 167 |
unless ref( $reserved_params->{_order_by} ) eq 'ARRAY'; |
| 168 |
|
| 164 |
# _order_by passed, fix if required |
169 |
# _order_by passed, fix if required |
| 165 |
for my $p ( @{$reserved_params->{_order_by}} ) { |
170 |
for my $p ( @{ $reserved_params->{_order_by} } ) { |
| 166 |
foreach my $qf ( @{$query_fixers} ) { |
171 |
foreach my $qf ( @{$query_fixers} ) { |
| 167 |
$p = $qf->($p, 1); # 1 => no quotes on matching |
172 |
$p = $qf->( $p, 1 ); # 1 => no quotes on matching |
| 168 |
} |
173 |
} |
| 169 |
} |
174 |
} |
| 170 |
} |
175 |
} |
| 171 |
- |
|
|