From e7714d05004a9b3980ab61a4e1d0411a12fcac2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Tue, 1 Sep 2015 17:26:26 +0200 Subject: [PATCH] [Follow-up] Bug 13813 - Remove C4::Dates from C4/Items.pm Fixed missing character (see comment #150) --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index ae1aebb..dc7500f 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2128,7 +2128,7 @@ C sub _set_defaults_for_add { my $item = shift; - $item->{dateaccessioned} || output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); + $item->{dateaccessioned} ||= output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); $item->{$_} ||= 0 for (qw( notforloan damaged itemlost withdrawn)); } -- 1.7.10.4