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

(-)a/Koha/REST/V1/Acquisitions/Orders.pm (-9 / +1 lines)
Lines 133-140 sub list { Link Here
133
        }
133
        }
134
134
135
        if (   defined $reserved_params->{q}
135
        if (   defined $reserved_params->{q}
136
            || defined $reserved_params->{query}
136
            || defined $reserved_params->{query} )
137
            || defined $reserved_params->{'x-koha-query'} )
138
        {
137
        {
139
138
140
            $filtered_params //={};
139
            $filtered_params //={};
Lines 151-162 sub list { Link Here
151
                  if $q;    # skip if exists but is empty
150
                  if $q;    # skip if exists but is empty
152
            }
151
            }
153
152
154
            # x-koha-query contains a string
155
            push @query_params_array,
156
              $json->decode(
157
                $c->table_name_fixer( $reserved_params->{'x-koha-query'} ) )
158
              if $reserved_params->{'x-koha-query'};
159
160
            # query is already decoded by JSON::Validator at this point
153
            # query is already decoded by JSON::Validator at this point
161
            push @query_params_array,
154
            push @query_params_array,
162
              $json->decode(
155
              $json->decode(
163
- 

Return to bug 33971