From b13ef3fc8aa8687943b168ed2b2ddfa5dc497516 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 19 Sep 2013 12:45:53 -0700 Subject: [PATCH] fix package dropdown when there are no package classes, #20686 --- httemplate/elements/tr-select-cust-part_pkg.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 %> -- 2.11.0