Bug 14923

Summary: Remove C4::Dates from labels/label-item-search.pl
Product: Koha Reporter: Marc Véron <veron>
Component: Architecture, internals, and plumbingAssignee: Marc Véron <veron>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: hector.hecaxmmx, jonathan.druart, joonas.kylmala, tomascohen, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 14870    
Attachments: Bug 14923 - Remove C4::Dates from labels/label-item-search.pl
[SIGNED-OFF]Bug 14923 - Remove C4::Dates from labels/label-item-search.pl
Bug 14923 - (follow-up) Test for invalid date input
Bug 14923 - (follow up) Add test for invalid dates using eval
Bug 14923 - Remove C4::Dates from labels/label-item-search.pl
[SIGNED-OFF]Bug 14923 - Remove C4::Dates from labels/label-item-search.pl
Bug 14923 - Remove C4::Dates from labels/label-item-search.pl

Description Marc Véron 2015-09-29 14:09:05 UTC
This patch removes C4::Dates from labels/label-item-search.pl
Comment 1 Marc Véron 2015-09-29 14:25:26 UTC Comment hidden (obsolete)
Comment 2 Héctor Eduardo Castro Avalos 2015-09-29 20:39:34 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2015-10-01 08:44:29 UTC
Marc, sorry but I get a software error if the date is not correctly formatted.
Comment 4 Marc Véron 2015-10-01 20:38:29 UTC Comment hidden (obsolete)
Comment 5 Marc Véron 2015-10-02 13:12:52 UTC
Comment on attachment 43030 [details] [review]
Bug 14923 - (follow-up) Test for invalid date input

Obsoleted to implement solution without using is_formatted_date_string
Comment 6 Marc Véron 2015-10-02 13:31:54 UTC Comment hidden (obsolete)
Comment 7 Marc Véron 2015-10-05 14:24:06 UTC
I re-do the patch from scratch.
Comment 8 Marc Véron 2015-10-05 14:24:22 UTC Comment hidden (obsolete)
Comment 9 Héctor Eduardo Castro Avalos 2015-10-05 15:01:08 UTC Comment hidden (obsolete)
Comment 10 Jonathan Druart 2015-10-06 10:40:25 UTC
Created attachment 43154 [details] [review]
Bug 14923 - Remove C4::Dates from labels/label-item-search.pl

This patch removes C4::Dates from labels/label-item-search.pl

To test:
- Go to Home > Tools > Labels home > Manage label batches
- Click "Add item(s)"
- Verify that selection with date after and date before works
  the same as without patch.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised. Tested with bad dates

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Todo later: Some checks should be added on client side.
Comment 11 Tomás Cohen Arazi (tcohen) 2015-10-06 14:07:38 UTC
Patch pushed to master.

Thanks Marc!