From cf388e9e55e5c1125a4ac7b8f2a1b3354d46f59b Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 29 Mar 2008 08:32:17 +0000 Subject: [PATCH] in the unlikely error case, the order button should stay enabled --- httemplate/misc/order_pkg.html | 6 ++++-- 1 file 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 () { Package <% 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 () {
- +> @@ -61,4 +61,6 @@ my $cust_main = qsearchs({ 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, }); +my $pkgpart = scalar($cgi->param('pkgpart')); + -- 2.11.0