Project

General

Profile

Actions

Support #916

closed

Bug 30376 - Unable to save item if field date acquired is set mandatory

Added by Lari Taskula about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
28.03.2022
Due date:
% Done:

100%

Estimated time:
Spent time:
Koha Bugzilla Bug#:

Description

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 reproduce:

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)

Actions #1

Updated by Lari Taskula over 1 year ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF