Bugzilla – Attachment 20906 Details for
Bug 10380
output_pref should use a hashref for parameters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10380: Followup Change prototype for output_pref routine
Bug-10380-Followup-Change-prototype-for-outputpref.patch (text/plain), 2.14 KB, created by
Jonathan Druart
on 2013-09-09 11:27:05 UTC
(
hide
)
Description:
Bug 10380: Followup Change prototype for output_pref routine
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-09-09 11:27:05 UTC
Size:
2.14 KB
patch
obsolete
>From aebb46bd4669c07774e764bd168d05147c952316 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 9 Sep 2013 13:26:40 +0200 >Subject: [PATCH] Bug 10380: Followup Change prototype for output_pref routine > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > t/db_dependent/Bookseller.t | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Bookseller.t b/t/db_dependent/Bookseller.t >index fca6913..a97cf4e 100644 >--- a/t/db_dependent/Bookseller.t >+++ b/t/db_dependent/Bookseller.t >@@ -160,12 +160,12 @@ is( $bookseller1fromid->{basketcount}, 2, 'Supplier1 has 2 baskets' ); > > #Test subscriptioncount > my $dt_today = dt_from_string; >-my $today = output_pref( $dt_today, 'iso', '24hr', 1 ); >+my $today = output_pref({ dt => $dt_today, dateformat => 'iso', timeformat => '24hr', dateonly => 1 }); > > my $dt_today1 = dt_from_string; > my $dur5 = DateTime::Duration->new( days => -5 ); > $dt_today1->add_duration($dur5); >-my $daysago5 = output_pref( $dt_today1, 'iso', '24hr', 1 ); >+my $daysago5 = output_pref({ dt => $dt_today1, dateformat => 'iso', timeformat => '24hr', dateonly => 1 }); > > my $budgetperiod = C4::Budgets::AddBudgetPeriod({ > budget_period_startdate => $daysago5, >@@ -346,7 +346,7 @@ my $basket2info = { > my $dt_today2 = dt_from_string; > my $dur10 = DateTime::Duration->new( days => -10 ); > $dt_today2->add_duration($dur10); >-my $daysago10 = output_pref( $dt_today2, 'iso', '24hr', 1 ); >+my $daysago10 = output_pref({ dt => $dt_today2, dateformat => 'iso', timeformat => '24hr', dateonly => 1 }); > my $basket3info = { > basketno => $sample_basket3, > closedate => $daysago10, >@@ -509,7 +509,7 @@ isnt( exists( $suppliers{$id_supplier4} ), 1, "Supplier4 hasnt late orders" ); > my $dt_today3 = dt_from_string; > my $dur4 = DateTime::Duration->new( days => -4 ); > $dt_today3->add_duration($dur4); >-my $daysago4 = output_pref( $dt_today3, 'iso', '24hr', 1 ); >+my $daysago4 = output_pref({ dt => $dt_today3, dateformat => 'iso', timeformat => '24hr', dateonly => 1 }); > %suppliers = > C4::Bookseller::GetBooksellersWithLateOrders( undef, $daysago4, undef ); > >-- >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 10380
:
18517
|
18597
|
19188
| 20906