[Koha-bugs] [Bug 14136] Remove superfluous template parameters from members/member-flags.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 4 15:23:18 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14136

--- Comment #1 from Marc Véron <veron at veron.ch> ---
Created attachment 38812
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38812&action=edit
Bug 14136 - Remove superfluous template parameters from members/member-flags.pl

This bug was triggered because intranet-error.log had entries like the
following:
member-flags.pl: Use of uninitialized value $roadtype in concatenation (.) or
string at /usr/share/kohaclone/members/member-flags.pl line 176.

To reproduce: Have a patron without roadtype and go to
Home > Patrons > Set permissions for ...

There are some template parameters that are not used in the template
member-flags.tt ( $roadtype is used while preparing $address )

Unused template params are:
cardnumber
othernames
categorycode
category_type
categoryname
address
address2
city
state
zipcode
country
phone
phonepro
mobile
email
emailpro
branchcode
branchname
loop
is_child
activeBorrowerRelationship
RoutingSerials

To test:
- Verify that you get the warning above in intranet-error.log
- Verify that the parameters above are not used in the template member-flags.tt
- Apply patch
- Verify that setting permissions for patrons still works

Note: There are a lot of indenting issues in this file. This patch does not
intend to resolve them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list