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

(-)a/C4/Utils/DataTables.pm (-9 / +8 lines)
Lines 266-284 sub dt_build_query_dates { Link Here
266
266
267
    It calls dt_build_query_dates or dt_build_query_simple fonction of $type.
267
    It calls dt_build_query_dates or dt_build_query_simple fonction of $type.
268
268
269
    $type can be 'simple' or 'rage_dates'.
269
    $type can contain 'simple' or 'rage_dates'.
270
    if $type is not matched it returns undef
270
271
271
=cut
272
=cut
272
sub dt_build_query {
273
sub dt_build_query {
273
    my ( $type, @params ) = @_;
274
    my ( $type, @params ) = @_;
274
    given ( $type ) {
275
    if ( $type =~ m/simple/ ) {
275
        when ( /simple/ ) {
276
        return dt_build_query_simple(@params);
276
            return dt_build_query_simple( @params );
277
    }
277
        }
278
    elsif ( $type =~ m/range_dates/ ) {
278
        when ( /range_dates/ ) {
279
        return dt_build_query_dates(@params);
279
            return dt_build_query_dates( @params );
280
        }
281
    }
280
    }
281
    return;
282
}
282
}
283
283
284
1;
284
1;
285
- 

Return to bug 11474