summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-03-29 08:32:17 +0000
committerivan <ivan>2008-03-29 08:32:17 +0000
commitcf388e9e55e5c1125a4ac7b8f2a1b3354d46f59b (patch)
tree884f2ecd202ddf46b133295f4b7d76693cebc858
parent3f23bdfaef8eb6bb092b72ea741b63e243f8ab19 (diff)
in the unlikely error case, the order button should stay enabled
-rw-r--r--httemplate/misc/order_pkg.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index f4f297140..852b51ce4 100644
--- a/httemplate/misc/order_pkg.html
+++ b/httemplate/misc/order_pkg.html
@@ -21,7 +21,7 @@ function enable_order_pkg () {
<TH ALIGN="right">Package</TH>
<TD>
<% include('/elements/select-cust-part_pkg.html',
- 'curr_value' => scalar( $cgi->param('pkgpart') ),
+ 'curr_value' => $pkgpart,
'cust_main' => $cust_main,
'onchange' => 'enable_order_pkg',
)
@@ -41,7 +41,7 @@ function enable_order_pkg () {
</TABLE>
<BR>
-<INPUT NAME="submit" TYPE="submit" VALUE="Order Package" disabled>
+<INPUT NAME="submit" TYPE="submit" VALUE="Order Package" <% $pkgpart ? '' : 'DISABLED' %>>
</FORM>
</BODY>
@@ -61,4 +61,6 @@ my $cust_main = qsearchs({
'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
});
+my $pkgpart = scalar($cgi->param('pkgpart'));
+
</%init>