Bugzilla – Attachment 46290 Details for
Bug 14480
Warns when modifying patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14480: Switching the IF/ELSE
Bug-14480-Switching-the-IFELSE.patch (text/plain), 1.93 KB, created by
Aleisha Amohia
on 2016-01-06 00:38:40 UTC
(
hide
)
Description:
Bug 14480: Switching the IF/ELSE
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-01-06 00:38:40 UTC
Size:
1.93 KB
patch
obsolete
>From d6a98e61d6935359b9bf7c58a253447c9372c9d9 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Wed, 6 Jan 2016 00:37:04 +0000 >Subject: [PATCH] Bug 14480: Switching the IF/ELSE > >To test: >1) Go to any patron (ie this link http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=1369) >2) Click Edit >3) Notice the warn appears >4) Apply patch and reload page >5) Notice warns are gone but page still works correctly >6) Add restriction and save, then go back to Edit >7) Confirm restriction shows as it should >8) Remove restriction and save, then go back to Edit >9) Confirm it says "Patron is currently unrestricted". >--- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index e646890..cfe1222 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -959,9 +959,7 @@ > <fieldset class="rows"> > <legend>Patron restrictions</legend> > >- [% IF ( debarments.size < 1 ) %] >- <p>Patron is currently unrestricted.</p> >- [% ELSE %] >+ [% IF ( debarments ) %] > <table> > <thead> > <tr> >@@ -989,7 +987,10 @@ > [% END %] > </tbody> > </table> >+ [% ELSE %] >+ <p>Patron is currently unrestricted.</p> > [% END %] >+ > [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %] > <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> > <fieldset id="manual_restriction_form"> >-- >1.7.10.4
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 14480
:
40744
|
45677
|
45796
|
46025
|
46290
|
46300
|
46301
|
46305