X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FWidgets%2FForm%2FInteger;h=99e5449047cb267f879bcdd04a88cc4dd67d2fec;hp=ac349e866dbdea09175f716fdc2130311a2470bb;hb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941 diff --git a/rt/share/html/Widgets/Form/Integer b/rt/share/html/Widgets/Form/Integer index ac349e866..99e544904 100644 --- a/rt/share/html/Widgets/Form/Integer +++ b/rt/share/html/Widgets/Form/Integer @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,7 +46,7 @@ %# %# END BPS TAGGED BLOCK }}} <%DOC> -see docs/using_forms_widgets.pod +see docs/extending/using_forms_widgets.pod
<% $Description %> @@ -57,6 +57,8 @@ see docs/using_forms_widgets.pod <% $Hints %>
<%INIT> +$_ = '' foreach grep !defined, $CurrentValue, $DefaultValue; +$DefaultLabel ||= loc( 'Default: [_1]', $DefaultValue ); <%ARGS> $Name @@ -68,15 +70,18 @@ $CurrentValue => '', $Default => 0, $DefaultValue => 0, -$DefaultLabel => loc( 'Default: [_1]', $DefaultValue ), +$DefaultLabel => undef <%METHOD InputOnly> -\ +\ <%ARGS> $Name $CurrentValue => '', +<%INIT> +$CurrentValue = '' unless defined $CurrentValue; + <%METHOD Process>