[Koha-bugs] [Bug 15166] New: Make output_pref takes a string in parameter

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 10 18:46:03 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15166

            Bug ID: 15166
           Summary: Make output_pref takes a string in parameter
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: jonathan.druart at bugs.koha-community.org
          Reporter: jonathan.druart at bugs.koha-community.org
        QA Contact: testopia at bugs.koha-community.org

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') });

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list