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)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 7 Feb 2017 17:43:48 +0000 (17:43 +0000)
commit4cdcdb3cb5ebefedcb44766745078a949227f0a5
tree58f2c1b40fd8a2c388cfb7c95bb1d1f06476369b
parent4f178fad53fb748bd1ccf67680e02411918c9584
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>
C4/Items.pm