From 33beebf4cb42eba3e1dd868ad5e0af102de961da Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sat, 29 Sep 2012 16:36:46 -0700 Subject: update address standardization for cust_location changes --- rt/share/html/Widgets/Form/Integer | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'rt/share/html/Widgets/Form/Integer') diff --git a/rt/share/html/Widgets/Form/Integer b/rt/share/html/Widgets/Form/Integer index ac349e866..b8d8f90bf 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-2012 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> -- cgit v1.2.1