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

(-)a/C4/Search/History.pm (-1 / +1 lines)
Lines 55-61 sub build_new_cookie_value { Link Here
55
        query_cgi  => $query_cgi,
55
        query_cgi  => $query_cgi,
56
        total      => "$total",
56
        total      => "$total",
57
        type       => $type,
57
        type       => $type,
58
        time       => output_pref( dt_from_string(), 'iso' ),
58
        time       => output_pref({ dt => dt_from_string(), dateformat => 'iso' }),
59
    };
59
    };
60
60
61
    shift @recent_searches if (@recent_searches > 15);
61
    shift @recent_searches if (@recent_searches > 15);
(-)a/t/Search/History.t (-2 / +1 lines)
Lines 23-29 my $first_search = C4::Search::History::build_new_cookie_value({ Link Here
23
    type => "biblio",
23
    type => "biblio",
24
});
24
});
25
25
26
my $date = output_pref( dt_from_string(), 'iso' );
26
my $date = output_pref({ dt => dt_from_string(), dateformat => 'iso' });
27
27
28
my @values = @{ C4::Search::History::get_from_cookie({cookie => $first_search}) };
28
my @values = @{ C4::Search::History::get_from_cookie({cookie => $first_search}) };
29
my $values = shift @values;
29
my $values = shift @values;
30
- 

Return to bug 10807