[Koha-bugs] [Bug 31234] SubfieldsToAllowForRestrictedEditing : data from drop-down menu not stored

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 26 22:51:09 CEST 2022


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

--- Comment #3 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 138145
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138145&action=edit
Bug 31234: SubfieldsToAllowForRestrictedEditing - data from drop-down menu not
stored

Problem with items restricted edition, restriced fields with a drop-down
menu are not stored, since 21.11.

This comes from a change by Bug 28445 in items edition form :
  <select name="field_value"
change to :
  <select name="[% kohafield | html %]"

This breaks the special JS code :
https://git.koha-community.org/Koha-community/Koha/src/commit/fc919fc796df42c29e73cd527d3c425377fcc27a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js#L112

I propose we use "select.input_marceditor".

Test plan :
1. A librarian with 'edit_items_restricted' permission set
2. Item subfield not authorized for editing
(SubfieldsToAllowForRestrictedEditing). In Marc framework, this subfield is
linked to an authorized value (= drop-down menu). For exemple homebranch.
3. When adding/editing item, this subfield has a default value from drop-down
menu and is not editable (OK).
4. Save item
=> Without patch : the subfield is empty, it should have the value from
drop-down menu.
=> With patch : the subfield is saved with the value from drop-down menu.

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


More information about the Koha-bugs mailing list