Koha-clms/tools
Jonathan Druart b6e1652444 Bug 28015: Fix inventory for timeformat=12h
Inventory explodes with the following stacktrace if timeformat is set to 12h

Invalid value passed, datelastseen=2021-04-09 12:00 AM expected type is date at /usr/share/perl5/Exception/Class/Base.pm line 88
        Exception::Class::Base::throw('Koha::Exceptions::Object::BadValue', 'type', 'date', 'value', '2021-04-09 12:00 AM', 'property', 'datelastseen') called at /kohadevbox/koha/Koha/Object.pm line 196
        Koha::Object::catch {...} ('DBIx::Class::Exception=HASH(0x557a052baeb0)') called at /usr/share/perl5/Try/Tiny.pm line 124
        Try::Tiny::try('CODE(0x557a051931d8)', 'Try::Tiny::Catch=REF(0x557a052bfc30)') called at /kohadevbox/koha/Koha/Object.pm line 206
        Koha::Object::store('Koha::Item=HASH(0x557a0521a048)') called at /kohadevbox/koha/Koha/Item.pm line 202
        Koha::Item::store('Koha::Item=HASH(0x557a0521a048)') called at /kohadevbox/koha/tools/inventory.pl line 220

Test plan:
Set TimeFormat to 12h
Use the inventory
=> Confirm that it's working with this patch applied

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 21ea89d774)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8d5a3f7564)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-04-25 15:57:01 +00:00
..
csv-profiles
…
quotes Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
access_files.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
ajax-inventory.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
automatic_item_modification_by_age.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
background-job-progress.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
batchMod.pl Bug 26298: Don't set too_many_items_to_process if equal to limit 2021-02-09 12:49:15 +00:00
batch_delete_records.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
batch_extend_due_dates.pl Bug 25020: Preserve time part when batch extending due dates 2020-04-03 14:29:00 +01:00
batch_record_modification.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
batch_records_ajax.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
cleanborrowers.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
copy-holidays.pl Bug 24878: Add auth check for copy-holidays 2020-03-26 11:35:11 +00:00
csv-profiles.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
exceptionHolidays.pl Bug 4985: Fix Plack scope errors 2020-07-13 15:01:28 +00:00
export.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
holidays.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
import_borrowers.pl Bug 26059: Create guarantor/guarantee links on patron import 2021-02-22 22:32:30 +00:00
inventory.pl Bug 28015: Fix inventory for timeformat=12h 2021-04-25 15:57:01 +00:00
koha-news.pl Bug 26431: Use split button to offer choice of WYSIWYG or code editor for news 2020-10-20 17:11:30 +00:00
letter.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
manage-marc-import.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
marc_modification_templates.pl Bug 26784: Silence warns about comparing undefined values for MARC modification templates 2020-11-13 20:53:30 +00:00
modborrowers.pl Bug 27413: Restore debarred and debarredcomment to batch patron mod tools 2021-01-22 17:40:00 +00:00
newHolidays.pl Bug 25723: (QA follow-up) Remove unused module import 2020-07-27 17:40:38 +00:00
overduerules.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
picture-upload.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
problem-reports.pl Bug 25627: Move OPAC problem reports from administration to tools 2020-06-17 23:25:40 +00:00
quotes-upload.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
quotes.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
scheduler.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
showdiffmarc.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
stage-marc-import.pl Bug 26854: Remove log of STDERR 2020-12-09 21:27:20 +00:00
stockrotation.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
tools-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
upload-cover-image.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
upload-file.pl Bug 17501: Rename Upload to Uploader 2017-01-20 14:20:06 +00:00
upload.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
viewlog.pl Bug 26137: Remove warnings from viewlog.pl 2020-11-10 22:24:49 +00:00