[Koha-bugs] [Bug 15400] Display patron age in useful places

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 4 14:44:00 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15400

--- Comment #57 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
+        [%- IF ( patron.get_age ) %] ([% patron.get_age | html %] years)
+        [%- ELSIF ( patron.age ) %] ([% patron.age | html %] years)[% END -%]

That smells.
You should either test for the type of patron, or pass another variable
  patron_object vs patron
or
  patron vs borrower (that reads wrong but it is what is usually done in
controllers)

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


More information about the Koha-bugs mailing list