From: Mark Wells Date: Thu, 19 Sep 2013 19:45:53 +0000 (-0700) Subject: fix package dropdown when there are no package classes, #20686 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b13ef3fc8aa8687943b168ed2b2ddfa5dc497516 fix package dropdown when there are no package classes, #20686 --- diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index 8431beb4e..696baff9f 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -1,5 +1,3 @@ -%if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) { - <& /elements/xmlhttp.html, 'url' => $p.'misc/cust-part_pkg.cgi', 'subs' => [ 'get_part_pkg' ], @@ -28,7 +26,7 @@ discountnum.disabled = true; //disable discount dropdown } - classnum = what.options[what.selectedIndex].value; + classnum = what.value; function update_part_pkg(part_pkg) { @@ -70,6 +68,7 @@ +% if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) { <% mt('Package Class') |h %> @@ -81,7 +80,9 @@ -%} +% } else { # so that the rest of the page works correctly + +% } <% mt('Package') |h %>