View | Details | Raw Unified | Return to bug 41884
Collapse All | Expand All

(-)a/Koha/Items.pm (-1 / +3 lines)
Lines 584-590 sub batch_update { Link Here
584
            )
584
            )
585
        } catch {
585
        } catch {
586
            push @errors, {
586
            push @errors, {
587
                error => eval { $_->{error} } || "$_",
587
                itemnumber => $item->itemnumber,
588
                barcode    => $item->barcode,
589
                error      => eval { $_->message } || eval { $_->error } || "$_",
588
            };
590
            };
589
            warn $_
591
            warn $_
590
        };
592
        };
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc (-1 / +14 lines)
Lines 23-28 Link Here
23
                <div class="alert alert-warning">
23
                <div class="alert alert-warning">
24
                    [% SET error_items_count = report.errors.size %]
24
                    [% SET error_items_count = report.errors.size %]
25
                    <span>[% tnx('{count} item could not be modified.', '{count} items could not be modified.', error_items_count, { count = error_items_count }) | html %]</span>
25
                    <span>[% tnx('{count} item could not be modified.', '{count} items could not be modified.', error_items_count, { count = error_items_count }) | html %]</span>
26
                    <ul>
27
                        [% FOR error IN report.errors %]
28
                            <li>
29
                                [% error.barcode | html %]
30
                                [% IF error.error == 'intransit_cannot_withdraw' %]
31
                                    : [% t('Item is in transit') | html %]
32
                                [% ELSIF error.error == 'onloan_cannot_withdraw' %]
33
                                    : [% t('Item is checked out') | html %]
34
                                [% ELSE %]
35
                                    : [% error.error | html %]
36
                                [% END %]
37
                            </li>
38
                        [% END %]
39
                    </ul>
26
                </div>
40
                </div>
27
            [% END %]
41
            [% END %]
28
        </div>
42
        </div>
29
- 

Return to bug 41884