[Koha-bugs] [Bug 29768] hidepatronname hides guarantor name on borrower edit screen
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 4 18:15:47 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29768
Joonas Kylmälä <joonas.kylmala at iki.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Failed QA
--- Comment #8 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
The bug fix to patron-title.inc misses the closing tag for the link "</a>",
thus it produces now invalid HTML.
It would make more sense to replace
> [%- IF display_patron_name OR display_cardnumber -%]
with
> [%- IF can_see_patron_infos -%]
also, that would then allow to get rid of the following block above it:
> [%- IF hide_patron_infos_if_needed %] [%# Should only be set if patron is set -%]
> [%- SET can_see_patron_infos = logged_in_user.can_see_patron_infos( patron ) -%]
> [%- UNLESS can_see_patron_infos -%]
> [%- SET display_patron_name = 0 -%]
> [%- SET display_cardnumber = 0 -%]
> [%- ELSIF Koha.Preference('HidePatronName') -%]
> [%- SET display_patron_name = 0 -%]
> [%- END -%]
> [%- END -%]
Then similar bugs to miss a closing HTML tag would be avoided as everything
would be under one if block.
One more thing: could you please provide the bug fix in patron-title.inc in a
separate commit so if it is needed to fix some other bug and/or we need to
revert the fix you are doing here it would be possible.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list