Bugzilla – Attachment 10778 Details for
Bug 8421
patron images fail when barcode for patron has a +
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added a URI filter to encode a cardnumber for borrowers as to not break patronimage.pl
Added-a-URI-filter-to-encode-a-cardnumber-for-borr.patch (text/plain), 1.78 KB, created by
Elliott Davis
on 2012-07-11 23:37:44 UTC
(
hide
)
Description:
Added a URI filter to encode a cardnumber for borrowers as to not break patronimage.pl
Filename:
MIME Type:
Creator:
Elliott Davis
Created:
2012-07-11 23:37:44 UTC
Size:
1.78 KB
patch
obsolete
>From 4e01305c9e46c4c7a84cc22f9c6626c6b91243c0 Mon Sep 17 00:00:00 2001 >From: Elliott Davis <elliott@bywatersolutions.com> >Date: Wed, 11 Jul 2012 05:52:53 -0500 >Subject: [PATCH] Added a URI filter to encode a cardnumber for borrowers as to not break patronimage.pl > >To Test: > >Add a + (or any char that would need to be encoded) to a card number of a patron with an image attached. >Go to member/moremember.pl. >If the patrons image is there, you are golden. > >http://bugs.koha-community.org/show_bug.cgi?id=8421 >--- > .../intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index 091f7fe..3f58345 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -7,7 +7,7 @@ > <ul> > [% IF ( patronimages ) %] > [% IF ( picture ) %] >-<li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% cardnumber %]" id="patronimage" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li> >+<li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% cardnumber | uri %]" id="patronimage" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li> > [% ELSE %] > <li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li> > [% END %] >-- >1.7.2.5
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 8421
:
10778
|
10909