diff --git a/Koha/Items.pm b/Koha/Items.pm index 862631fbfb..90525e2f33 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -584,7 +584,9 @@ sub batch_update { ) } catch { push @errors, { - error => eval { $_->{error} } || "$_", + itemnumber => $item->itemnumber, + barcode => $item->barcode, + error => eval { $_->message } || eval { $_->error } || "$_", }; warn $_ }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc index ba400992a2..a889154774 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc @@ -23,6 +23,20 @@
[% SET error_items_count = report.errors.size %] [% tnx('{count} item could not be modified.', '{count} items could not be modified.', error_items_count, { count = error_items_count }) | html %] +
[% END %]