diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-10-04 20:22:19 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-10-04 20:22:19 -0700 |
commit | a8e1cb65cd92239721b8e81ef9fdf99f60fb3c3c (patch) | |
tree | d4ee544d313a66d2e7112fc452ba93aa09532714 /httemplate/edit/process | |
parent | 916836bcfff6d378e3bbdfde981bcf496b5c527c (diff) |
fix quantity-less ordering
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index ba4c5b1..3063198 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -48,9 +48,9 @@ die 'unknown custnum' unless $cust_main; $cgi->param('pkgpart') =~ /^(\d+)$/ or die 'illegal pkgpart '. $cgi->param('pkgpart'); my $pkgpart = $1; -$cgi->param('quantity') =~ /^(\d+)$/ +$cgi->param('quantity') =~ /^(\d*)$/ or die 'illegal quantity '. $cgi->param('quantity'); -my $quantity = $1; +my $quantity = $1 || 1; $cgi->param('refnum') =~ /^(\d*)$/ or die 'illegal refnum '. $cgi->param('refnum'); my $refnum = $1; |