View | Details | Raw Unified | Return to bug 37018
Collapse All | Expand All

(-)a/Koha/REST/Plugin/Query.pm (-2 / +2 lines)
Lines 212-218 Validate operators in the passed query. Link Here
212
        }
212
        }
213
    );
213
    );
214
214
215
=head3 dbic_validate_operators
215
=head3 dbic_remove_invalid_operators
216
216
217
    $filtered_params = $c->dbic_remove_invalid_operators({ filtered_params => $filtered_params});
217
    $filtered_params = $c->dbic_remove_invalid_operators({ filtered_params => $filtered_params});
218
218
Lines 226-231 $app->helper( Link Here
226
        my @invalid_operators = _get_invalid_operators( $args->{filtered_params} );
226
        my @invalid_operators = _get_invalid_operators( $args->{filtered_params} );
227
        my %badoperators      = map { $_ => 1 } @invalid_operators;
227
        my %badoperators      = map { $_ => 1 } @invalid_operators;
228
        my $filtered_params   = _remove_invalid_operators( $args->{filtered_params}, %badoperators );
228
        my $filtered_params   = _remove_invalid_operators( $args->{filtered_params}, %badoperators );
229
        warn "bad operators removed from the query";
229
        return $filtered_params;
230
        return $filtered_params;
230
    }
231
    }
231
);
232
);
232
- 

Return to bug 37018