Bug 20518: Don't show "Messages" header and link on patron details if there are no...
commitf3b8f17395f05548c87129d286a3f49d0b171e0b
authorOwen Leonard <oleonard@myacpl.org>
Wed, 4 Apr 2018 16:33:34 +0000 (4 16:33 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Apr 2018 19:45:09 +0000 (11 16:45 -0300)
tree5ebe0efea13f5aef49fac6086e1fe85d7e82ee40
parent8acf5912b3fd213b8bcb3e7ee9b47f7cb086002b
Bug 20518: Don't show "Messages" header and link on patron details if there are no messages

This patch modifies the patron detail page so that the "Messages" header
is not displayed if there are no messages.

Unrelated: A minor change was made to moremember.pl to quiet an error in
the log, "Use of uninitialized value $print in string eq at
members/moremember.pl line 219."

To test, apply the patch and open the detail page for a patron who has
no messages. There should be no "Messages" header or "add message" link.

Add a message to the patron's account. The message should appear, along
with the "Messages" header and "add message" link.

The error logs should show no errors.

Signed-off-by: Maksim Sen <maksim.sen@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
members/moremember.pl