Bug 23804: Correctly catch remote itemtype images
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 11 Oct 2019 13:18:58 +0000 (14:18 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 17 Oct 2019 13:41:30 +0000 (14:41 +0100)
commit0bc8fc2787a5ef29638094a0a7ec7b47be636ae1
tree18f35acf15667281f95517f9c76852f46cd07e6d
parenta24c17a2aa2053da1317c29e47a3946af2962afb
Bug 23804: Correctly catch remote itemtype images

Bug 20216 missed the mark and although it did start display a URL for
the itemtype image in use, it was not limited to remote urls and as such
broke the checked handling for displaying which local image was
selected.

Test plan:
1) Select a local image for an itemtype.
2) Check the correct image is displayed in the admin table.
3) Edit the itemtype checking that the correct image is checked.
4) Change to a remote image for the itemtype
5) Check the correct image is displayed in the admin table.
6) Edit the itemtype again and check that the URL still displays and is
   checked in the 'Remote image' tab.
7) Signoff

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt