http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14480 --- Comment #11 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Comment on attachment 46025 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46025 Bug 14480: Silences warn from editing patron Review of attachment 46025: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14480&attachment=46025) ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ +941,4 @@
<fieldset class="rows"> <legend>Patron restrictions</legend>
+ [% IF ( debarments.size = 'NULL' ) %]
I cannot explain why this works, but it's not the way to do :) size is a virtual method provided by Template::Toolkit, you cannot affect it the "NULL" string. Moreover you are using = instead of == Anyway, what I have proposed previously was the wrong test indeed, it should be [% UNLESS debarments %] -- You are receiving this mail because: You are watching all bug changes.