X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FWidgets%2FTitleBox;h=3c044b698f4c77b2825fcece82317b6d2716b2fb;hb=43a06151e47d2c59b833cbd8c26d97865ee850b6;hp=703e2a82d322cff7e11de94aeb23582d49212b85;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/rt/share/html/Widgets/TitleBox b/rt/share/html/Widgets/TitleBox index 703e2a82d..3c044b698 100644 --- a/rt/share/html/Widgets/TitleBox +++ b/rt/share/html/Widgets/TitleBox @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,9 +46,13 @@ %# %# END BPS TAGGED BLOCK }}}
- <& TitleBoxStart, %ARGS &><% $m->content | n %><& TitleBoxEnd &> + <& TitleBoxStart, %ARGS &><% $content | n %><& TitleBoxEnd &>
<%ARGS> $class => '' +$hide_empty => 0 - +<%INIT> +my $content = $m->content; +return if $hide_empty && $content =~ /^\s*$/s; +