Bug 15030 - Certain values in serials' items are lost on next edit
authorBlou <philippe.blouin@inlibro.com>
Mon, 19 Oct 2015 16:16:05 +0000 (12:16 -0400)
committerMason James <mtj@kohaaloha.com>
Wed, 22 Feb 2017 09:11:39 +0000 (22:11 +1300)
commit8408817f43d6a45dbd091e65427f1f72c76f47ce
treed130ddadb3a36cddea1fb04485fa1d16d18390af
parent6ab35b1a79ec8a984b83c59d78cefbcccfc2bd1f
Bug 15030 - Certain values in serials' items are lost on next edit

When editing serials subscription, we can edit them but some values are not pulled from the DB correctly to be put in the edit box.  If not noticed, the value will be overwritten on the next save.

Test:
- Create a subscription
- Edit itemcallnumber (952o?) and make sure to have a different value than the default one.
- Save.
- Edit it again
- The saved value is not there.

This is true for itemcallnumber and a few other fields.

This was caused by calls to ->field($subfield).  This would always fail, of course.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 4cdcdb3cb5ebefedcb44766745078a949227f0a5)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Items.pm