[Koha-bugs] [Bug 14969] Remove C4::Dates from serials/*.pl files
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 6 00:54:49 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14969
Marc Véron <veron at veron.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #44527|0 |1
is obsolete| |
--- Comment #10 from Marc Véron <veron at veron.ch> ---
Created attachment 44528
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44528&action=edit
Bug 14969: (followup) Handle invalid date input
This patch fixes software errors if invalid dates are given while adding or
editing a subscription (see comment #5).
Subscriptions with invalid dates will be saved with empty dates. A warning will
appear on the subscription detail page. This will be a rare case because
normally
datepickers are used for date entry.
Notes: - Before C4::Dates removal, wrong dates like 33/33/2033 did not
complain,
they created valid but fantasy dates in the future, e.g.
32/22/2099 resulted in 03/11/2100
- A more sophisticated date validation can be implemented in a separate
bug after
completion of C4::Dates removal.
To test:
- Create and edit subscriptions with valid dates, verify that subscriptions are
correctly defined
- Bypass datepickers by manually entering dates like 00/00/0000 or 33/33/2999,
verify
that subscriptions are saved, but a warning appears on the subscription's
detail
page.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list