From f79e072e63eb503153dea51166e275bf2fa421b0 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 5 Dec 2013 09:13:35 -0500 Subject: [PATCH] Bug 11342 - Error with opac self registration if BorrowersTitles is empty If BorrowersTitles is empty, it causes the library pulldown on the self registration page to be empty, and to have the "Saluation" field have the option "branches". This patch also fixes a minor string capitalization issue. Test Plan: 1) Enable OPAC self registration 2) Set the system preference BorrowersTitles to be empty 3) View the self registration page 4) Note the lack of branches in the home library pulldown 5) Apply this patch 6) Note the branches now display in the pulldown Signed-off-by: Christopher Brannon --- .../bootstrap/en/modules/opac-memberentry.tt | 4 ++-- .../opac-tmpl/prog/en/modules/opac-memberentry.tt | 4 ++-- opac/opac-memberentry.pl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index a82380a..0d48e8d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -68,7 +68,7 @@ [% ELSE %] + Home library: [% FOREACH b IN branches %] @@ -107,7 +107,7 @@ Identity
    - [% UNLESS hidden.defined('title') %] + [% UNLESS hidden.defined('title') || !member_titles %]
  1. [% IF mandatory.defined('title') %]