Bugzilla – Attachment 94210 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.10 KB, created by
Martin Renvoize (ashimema)
on 2019-10-15 13:20:34 UTC
(
hide
)
Description:
Bug 23804: Correctly catch remote itemtype images
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-10-15 13:20:34 UTC
Size:
3.10 KB
patch
obsolete
>From 1799c35c0edbd084d310fee7660502c614e91caf 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 >--- > .../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 2330e84779..df636f2405 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -195,15 +195,17 @@ 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="" /> >- [% END %] >+ <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" /> > </li> > </ul> > <br class="clear" /> >-- >2.20.1
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