Bug 30952: Remove messages box on patron detail page when empty
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 13 Sep 2022 12:49:07 +0000 (14:49 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 12 Oct 2022 19:14:23 +0000 (16:14 -0300)
Issue #28

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

index 2a774d0..d7f5bc2 100644 (file)
                             </div>
                         [% END %]
 
-                        <div class="col-sm-12">
-                            <div id="patron_messages" class="circmessage attention">
-                                [% INCLUDE 'patron_messages.inc' moremember = 1 %]
+                        [% messages = INCLUDE 'patron_messages.inc' moremember = 1 | trim %]
+                        [% IF messages %]
+                            <div class="col-sm-12">
+                                <div id="patron_messages" class="circmessage attention">
+                                    [% messages | $raw %]
+                                </div>
                             </div>
-                        </div>
+                        [% END %]
 
                         <div class="col-sm-12">
                             <h1>[% INCLUDE 'patron-title.inc' no_html = 1 %]</h1>