Bugzilla – Attachment 94225 Details for
Bug 23804
Itemtype not checked when editing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23804: Correctly catch remote itemtype images
Bug-23804-Correctly-catch-remote-itemtype-images.patch (text/plain), 3.17 KB, created by
Katrin Fischer
on 2019-10-16 06:14:38 UTC
(
hide
)
Description:
Bug 23804: Correctly catch remote itemtype images
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-10-16 06:14:38 UTC
Size:
3.17 KB
patch
obsolete
>From dd995891cfdb4b79ff6ee6a3b16b7d2f49c2d7db Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 11 Oct 2019 14:18:58 +0100 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index 2f8c8986aa..7bff5dddaa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -195,14 +195,16 @@ Item types administration > <ul> > <li> > <label for="remote_image_check"> Remote image:</label> >- [% IF itemtype.imageurl %] >+ [% SET image_location = itemtype.image_location('intranet') %] >+ [% IF image_location.match('^http') %] > <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" /> >+ <input type="text" name="remoteImage" size="48" maxlength="200" value="[% image_location | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> >+ [% IF itemtype.imageurl %] >+ <img src="[% image_location | html %]" alt="" /> >+ [% END %] > [% ELSE %] > <input type="radio" id="remote_image_check" name="image" value="remoteImage" /> >- [% END %] >- <input type="text" name="remoteImage" size="48" maxlength="200" value="[% itemtype.imageurl | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" /> >- [% IF itemtype.imageurl %] >- <img src="[% itemtype.imageurl | html %]" alt="" /> >+ <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" /> > [% END %] > </li> > </ul> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23804
:
94017
|
94028
|
94210
|
94211
|
94217
| 94225