[Patches] [PATCH] Bug 6328 : Previous patches broke templates, this is fixing

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Sun Nov 27 20:35:02 NZDT 2011


From: Chris Cormack <chrisc at catalyst.net.nz>
Date: Sun, 27 Nov 2011 20:30:49 +1300
Subject: [PATCH] Bug 6328 : Previous patches broke templates, this is fixing
 them

---
 .../prog/en/modules/members/memberentrygen.tt      |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 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 937b28e..b9371b6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -1145,7 +1145,11 @@
 				
 				<br />
 				<label for="datedebarred" class="radio">until:</label> 
-				<input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
+				[% IF opduplicate %]
+				    <input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]" onclick="this.value=''" />
+				[% ELSE %]
+				    <input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]" />
+				[% END %]
 				<img src="[% themelang %]/lib/calendar/cal.gif" id="debarred_button" alt="Show Calendar" />
 		         <script language="JavaScript" type="text/javascript">
 		            Calendar.setup(
@@ -1158,7 +1162,11 @@
 		        </script>
 		        <br />
 		        <label for="debarredcomment" class="radio">Comment:</label>
-				<textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" [% IF ( opduplicate ) %] onclick="this.value=''"[% END %]>[% debarredcomment %]</textarea>
+			       [% IF ( opduplicate ) %] 
+			           <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" onclick="this.value=''">[% debarredcomment %]</textarea>
+			       [% ELSE %]
+				   <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" ">[% debarredcomment %]</textarea> 
+			       [% END %]
 	        </li>
 
 			</ol>
-- 
1.7.5.4


More information about the Patches mailing list