X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FWidgets%2FForm%2FInteger;h=e658a36108e2b6749fef35a432f7dc3c889c7cbe;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=ac349e866dbdea09175f716fdc2130311a2470bb;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/rt/share/html/Widgets/Form/Integer b/rt/share/html/Widgets/Form/Integer index ac349e866..e658a3610 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-2015 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>