Bugzilla – Attachment 23712 Details for
Bug 10807
OPAC: There is no authority search history
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10807: FIX conflicts with bug 10380
Bug-10807-FIX-conflicts-with-bug-10380.patch (text/plain), 1.68 KB, created by
Jonathan Druart
on 2013-12-20 14:27:32 UTC
(
hide
)
Description:
Bug 10807: FIX conflicts with bug 10380
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-12-20 14:27:32 UTC
Size:
1.68 KB
patch
obsolete
>From a07e55628b448f810934824728894b9154f7f756 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 20 Dec 2013 15:24:49 +0100 >Subject: [PATCH] Bug 10807: FIX conflicts with bug 10380 > >Bug 10380 changes the prototype of the output_pref routine. >Now it should take a hashref in parameters. > >Without this patch, an error occurred if the user was not looged in and >try to access to his search history (Template process failed: undef >error - The 'day' parameter ("2013") to DateTime::new did not pass the >'an integer which is a possible valid day of month' callback") >--- > C4/Search/History.pm | 2 +- > t/Search/History.t | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Search/History.pm b/C4/Search/History.pm >index b120ab5..9dd5eb4 100644 >--- a/C4/Search/History.pm >+++ b/C4/Search/History.pm >@@ -55,7 +55,7 @@ sub build_new_cookie_value { > query_cgi => $query_cgi, > total => "$total", > type => $type, >- time => output_pref( dt_from_string(), 'iso' ), >+ time => output_pref({ dt => dt_from_string(), dateformat => 'iso' }), > }; > > shift @recent_searches if (@recent_searches > 15); >diff --git a/t/Search/History.t b/t/Search/History.t >index a340d16..fbb1322 100644 >--- a/t/Search/History.t >+++ b/t/Search/History.t >@@ -23,7 +23,7 @@ my $first_search = C4::Search::History::build_new_cookie_value({ > type => "biblio", > }); > >-my $date = output_pref( dt_from_string(), 'iso' ); >+my $date = output_pref({ dt => dt_from_string(), dateformat => 'iso' }); > > my @values = @{ C4::Search::History::get_from_cookie({cookie => $first_search}) }; > my $values = shift @values; >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10807
:
20734
|
20764
|
20951
|
20952
|
20988
|
20989
|
20990
|
21070
|
21362
|
21363
|
21403
|
22560
|
22561
|
22562
|
22563
|
22564
|
22565
|
23676
|
23677
|
23678
|
23679
|
23680
|
23681
|
23682
|
23712
|
24221
|
24222
|
24223
|
24224
|
24225
|
24226
|
27372
|
27373
|
27374
|
27375
|
27376
|
27377
|
27378