X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-inventory_item.html;h=d7a14ec952e0a3bf28fafaba38baeb04e7a640ba;hb=9d5f61a78f7cddeb65f6943f3e58326f47cc0c0b;hp=669e85f27a79688bff8029c292bbf7e30ae0d4d6;hpb=c2e126583354b58ef54ffa7f580b115b8eed1dd3;p=freeside.git 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).')'; +