From bb032138e72a6428e404d9f3593430b7fd989f45 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 13 Nov 2010 14:08:59 -0500 Subject: [PATCH] bug 4908: rename temlate variable to branchname Using branchname is more accurate and could avoid a bug if/when the patron update function is made more sophisticated. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl | 2 +- opac/opac-userupdate.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl index db9c416bcc..73f5c21941 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl @@ -73,7 +73,7 @@ Library Use:
  1. " />
  2. -
  3. " />
  4. +
  5. " />
  6. " />
  7. ()" />
  8. " />
  9. diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl index a9d01011a0..ab2e15ddd4 100755 --- a/opac/opac-userupdate.pl +++ b/opac/opac-userupdate.pl @@ -150,7 +150,7 @@ $borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} ); $borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} ); $borr->{'dateofbirth'} = format_date( $borr->{'dateofbirth'} ); $borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} ); -$borr->{'branchcode'} = GetBranchName($borr->{'branchcode'}); +$borr->{'branchname'} = GetBranchName($borr->{'branchcode'}); if (C4::Context->preference('ExtendedPatronAttributes')) { my $attributes = C4::Members::Attributes::GetBorrowerAttributes($borrowernumber, 'opac'); -- 2.39.5