[Koha-bugs] [Bug 30376] Unable to save item if field date acquired is set mandatory

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 6 12:02:02 CEST 2022


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

Johanna Räisä <johanna.raisa at koha-suomi.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #132317|0                           |1
        is obsolete|                            |
                 CC|                            |johanna.raisa at koha-suomi.fi

--- Comment #2 from Johanna Räisä <johanna.raisa at koha-suomi.fi> ---
Created attachment 132985
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132985&action=edit
Bug 30376: Fix missing mandatory date acquired error on item  save

If you set 952$d (date acquired or "dateaccessioned") as mandatory in
your MARC framework, you'll be unable to edit or add items because item
form validation fails with error "1 mandatory fields empty".

To test:

1. Edit a MARC framework of your choice (e.g. Default)
2. Locate 952$d "Date acquired" and click Edit
/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=952&frameworkcode=#subdfield
3. Tick "Mandatory" checkbox
4. Save changes
5. Edit any item using MARC framework you edited in step 1
/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=123&itemnumber=456
6. Set "Date acquired" to any date
7. Click Save
8. Observe error "- 1 mandatory fields empty (highlighted)" (JavaScript alert)
9. Apply patch
10. Repeat steps 5-7
11. Observe no error, item saves as expected

Signed-off-by: Johanna Raisa <johanna.raisa at gmail.com>

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


More information about the Koha-bugs mailing list