projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.23
[freeside.git]
/
rt
/
share
/
html
/
Widgets
/
Form
/
Integer
diff --git
a/rt/share/html/Widgets/Form/Integer
b/rt/share/html/Widgets/Form/Integer
index
ac349e8
..
e658a36
100644
(file)
--- a/
rt/share/html/Widgets/Form/Integer
+++ b/
rt/share/html/Widgets/Form/Integer
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
1
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-46,7
+46,7
@@
%#
%# END BPS TAGGED BLOCK }}}
<%DOC>
%#
%# END BPS TAGGED BLOCK }}}
<%DOC>
-see docs/using_forms_widgets.pod
+see docs/
extending/
using_forms_widgets.pod
</%DOC>
<div id="form-box-<% lc $Name %>" class="widget">
<span class="label description"><% $Description %></span>
</%DOC>
<div id="form-box-<% lc $Name %>" class="widget">
<span class="label description"><% $Description %></span>
@@
-57,6
+57,8
@@
see docs/using_forms_widgets.pod
<span class="hints"><% $Hints %></span>
</div>
<%INIT>
<span class="hints"><% $Hints %></span>
</div>
<%INIT>
+$_ = '' foreach grep !defined, $CurrentValue, $DefaultValue;
+$DefaultLabel ||= loc( 'Default: [_1]', $DefaultValue );
</%INIT>
<%ARGS>
$Name
</%INIT>
<%ARGS>
$Name
@@
-68,15
+70,18
@@
$CurrentValue => '',
$Default => 0,
$DefaultValue => 0,
$Default => 0,
$DefaultValue => 0,
-$DefaultLabel =>
loc( 'Default: [_1]', $DefaultValue ),
+$DefaultLabel =>
undef
</%ARGS>
<%METHOD InputOnly>
</%ARGS>
<%METHOD InputOnly>
-<input type="text" name="<% $Name %>" value="<% $CurrentValue
|| ''
%>" />\
+<input type="text" name="<% $Name %>" value="<% $CurrentValue %>" />\
<%ARGS>
$Name
$CurrentValue => '',
</%ARGS>
<%ARGS>
$Name
$CurrentValue => '',
</%ARGS>
+<%INIT>
+$CurrentValue = '' unless defined $CurrentValue;
+</%INIT>
</%METHOD>
<%METHOD Process>
</%METHOD>
<%METHOD Process>