[Koha-bugs] [Bug 15166] Make output_pref accept a string as parameter
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 11 23:08:05 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15166
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #44721|0 |1
is obsolete| |
Attachment #44744|0 |1
is obsolete| |
--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 44779
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44779&action=edit
[PASSED QA] Bug 15166: Make output_pref takes a string in parameter
To simplify the management of dates, it would be great that output_pref takes a
string in parameter.
my $date = $input->param('my_date');
$date = eval { dt_from_string( $date ) } if $date;
$date = output_pref({dt => $date}) if $date;
Could be replace with:
my $date = output_pref({ str => $input->param('my_date') });
Tested with t/DateUtils.t, passed OK.
Signed-off-by: Marc Véron <veron at veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list