To recreate: 1 - Edit an item type, define a replacement cost,processing fee, and remote image url 2 - Save the item type 3 - Values are correct in list 4 - Edit again 5 - note values in fields are not populated 6 - Save itemtype, values are lost
Created attachment 71672 [details] [review] Bug 20216: Correctly populate values in itemtype editor To test: 1 - Edit an item type, define a replacement cost,processing fee, and remote image url 2 - Save the item type 3 - Values are correct in list 4 - Edit again 5 - note values in fields are not populated 6 - Save itemtype, values are lost 7 - Apply patch 8 - Repeat 1-4 9 - Values should be correctly populated and saved now
Created attachment 71675 [details] [review] Bug 20216: Correctly populate values in itemtype editor To test: 1 - Edit an item type, define a replacement cost,processing fee, and remote image url 2 - Save the item type 3 - Values are correct in list 4 - Edit again 5 - note values in fields are not populated 6 - Save itemtype, values are lost 7 - Apply patch 8 - Repeat 1-4 9 - Values should be correctly populated and saved now Signed-off-by: Owen Leonard <oleonard@myacpl.org>
This part reads wrong: 204 [% IF ( remote_image ) %] 205 <img src="[% itemtype.imageurl %]" alt="" /> 206 [% END %] Must be IF itemtype.imageurl I guess.
Created attachment 71678 [details] [review] Bug 20216: (follow-up) - Fix other use of remote_image
Created attachment 71693 [details] [review] Bug 20216: Correctly populate values in itemtype editor Caused by a bad merge conflict on bug 12768. To test: 1 - Edit an item type, define a replacement cost,processing fee, and remote image url 2 - Save the item type 3 - Values are correct in list 4 - Edit again 5 - note values in fields are not populated 6 - Save itemtype, values are lost 7 - Apply patch 8 - Repeat 1-4 9 - Values should be correctly populated and saved now Signed-off-by: Owen Leonard <oleonard@myacpl.org> Bug 20216: (follow-up) - Fix other use of remote_image Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 18.05, thanks to everybody involved!
Frido, I think I missed this one, needed for 17.11
Pushed to 17.11 for 17.11.08
Depends on Bug 12768 not in 17.05.x