[Koha-patches] [PATCH] Markup corrections to fix for Bug 4248

Owen Leonard oleonard at myacpl.org
Fri Apr 30 18:48:53 CEST 2010


- Missing "=" in attribute
- TMPL_IF nested in HTML tag, which breaks translation script
---
 .../prog/en/modules/members/memberentrygen.tmpl    |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
index 811b622..b21d35a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
@@ -404,10 +404,13 @@
         
         <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
         <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong>
-        <select id="select_city" name "select_city">
+        <select id="select_city" name="select_city">
         <!-- TMPL_LOOP NAME="city_loop" -->
-            <option value="<!-- TMPL_VAR NAME='city_zipcode'-->|<!-- TMPL_VAR NAME='city_name' -->"
-                <!-- TMPL_IF NAME="selected" --> selected="1" <!-- /TMPL_IF --> >
+            <!-- TMPL_IF NAME="selected" -->
+            <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->" selected="selected">
+            <!-- TMPL_ELSE -->
+            <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->">
+            <!-- /TMPL_IF -->
                 <!-- TMPL_VAR NAME="city_name" --> <!-- TMPL_VAR NAME="city_zipcode" -->
             </option>
         <!-- /TMPL_LOOP -->
-- 
1.6.3.3




More information about the Koha-patches mailing list