From: Ivan Kohler Date: Thu, 12 Feb 2015 01:19:04 +0000 (-0800) Subject: fix inventory vs. hardware type selection, RT#33425 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=425a87cceee1042973ef0b58755496eadb8caab1 fix inventory vs. hardware type selection, RT#33425 --- diff --git a/httemplate/elements/tr-select-inventory_item.html b/httemplate/elements/tr-select-inventory_item.html index 669e85f27..d7a14ec95 100644 --- a/httemplate/elements/tr-select-inventory_item.html +++ b/httemplate/elements/tr-select-inventory_item.html @@ -12,7 +12,6 @@ <& tr-td-label.html, %opt &> <& select-tiered.html, - 'prefix' => $opt{'field'}.'_', 'tiers' => [ { field => $opt{'field'}.'_classnum', @@ -32,12 +31,15 @@ }, ], %opt, + 'prefix' => $opt{'prefix'}. $opt{'field'}. '_', #after %opt so it overrides &> % } <%init> + my %opt = @_; + my @classnums; if (ref($opt{'classnum'})) { @classnums = @{ $opt{'classnum'} }; @@ -45,4 +47,5 @@ if (ref($opt{'classnum'})) { @classnums = split(',', $opt{'classnum'}); } my $classnum_sql = 'classnum IN('.join(',', @classnums).')'; +