[Koha-patches] [PATCH] kohabug 2164 - display of guarantor relationship

Galen Charlton galen.charlton at liblime.com
Wed May 28 19:08:47 CEST 2008


When editing a child or professional patron, display
the drop-down of relationship types only if at least
one relationship type is defined by the borrowerRelationship
syspref.
---
 .../prog/en/modules/members/memberentrygen.tmpl    |    2 ++
 1 files changed, 2 insertions(+), 0 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 4a3508d..75fbae4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
@@ -265,6 +265,7 @@
     <!--/TMPL_UNLESS-->
 <!--TMPL_IF Name="showguarantor"--><input type="hidden" name="guarantorid"   value="<!-- TMPL_VAR NAME="guarantorid" -->" />
   <li><label for="">Guarantor: </label>
+  <!-- TMPL_IF name="relshiploop" -->
   <select name="relationship" id="relationship" >
     <!-- TMPL_LOOP name="relshiploop" -->
         <!-- TMPL_IF name="selected" -->
@@ -274,6 +275,7 @@
         <!-- /TMPL_IF -->
     <!-- /TMPL_LOOP -->
     </select>
+  <!-- /TMPL_IF -->
   <input name="contactname" id="contactname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
   <input name="contactfirstname" id="contactfirstname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
   <!-- TMPL_IF NAME="guarantorid"-->  
-- 
1.5.5.GIT




More information about the Koha-patches mailing list