[Koha-bugs] [Bug 10543] false mandatory warning in additem
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 17 04:36:25 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10543
Srdjan Jankovic <srdjan at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #19572|0 |1
is obsolete| |
--- Comment #14 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
Created attachment 19704
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19704&action=edit
[SIGNED-OFF] Bug 10543 - false mandatory warning in additem
When editing a item, you get a popup warning :
"1 mandatory fields empty (highlighted)".
But all mandatory fields are filled.
This is because there is a field with a huge content (more than 100
characters), it it displayed in a textarea instead of input.
This patch corrects javascript form check by using siblings().
Also adds a more precise filter to find mandatory inputs because looking in
full page may bring unwanted results.
Test plan :
- In a framework, make sure you have in item field :
An optionnal subfield (without authorised value) then a mandatory subfield
then an optional subfield next to mandatory subfield
For example : $i (optional), $r (mandatory) and $s (optional)
- Open a biblio record and create a new item
- Enter more than 100 characters in $i, fill $r and $s
- Click "Add item"
- Edit this item
=> You get a textarea for $i
- Empty $s and Save
=> Without patch, you get a warning and form is not saved and you see that $s
is yellow while it should be $r
=> With patch, form is saved
- Re-edit this item
- Empty $r and save
=> You get a warning and form is not saved
Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list