[Koha-bugs] [Bug 31154] Batch item modification fails when "Use default values" is checked

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 26 12:34:26 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31154

Emmi Takkinen <emmi.takkinen at koha-suomi.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|koha-bugs at lists.koha-commun |emmi.takkinen at koha-suomi.fi
                   |ity.org                     |
             Status|NEW                         |Needs Signoff

--- Comment #5 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
Created attachment 138124
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138124&action=edit
Bug 31154: Pass biblionumber to Koha::UI::Form::Builder::Item->new from
batchMod.pl to prevent error 500

When one tries to batch mod items and has "Use default values"
checkbox checked on and their default framework contains
default values, Koha dies on error 500. In logs it reads:

Can't call method "field" on an undefined value at
.../Koha/Koha/UI/Form/Builder/Item.pm line 164.

This happens because in batchMod.pl line 269 we don't pass
biblionumber as parameter to Koha::UI::Form::Builder::Item->new
and thus Koha fails to fetch biblios marc record.

To test:
1. Update default framework 952 and add a default value
* Example: Add REF as default for 952$8 with standard sample data
2. Find some item(s) to modify
3. Provide barcodes of those item(s) and check checkbox "Use default values"
4. Hit "Continue"
=> error 500 is raised
5. Apply patch.
6. Repeat steps 3. and 4.

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list