diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-02-11 17:19:02 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-02-11 17:19:02 -0800 |
commit | 915ae2a5a5cbe3bf70a9be5024ef6323c63f47b0 (patch) | |
tree | 08d965e657f6ffe740ed4c30389a8ea7c18d14ae /httemplate/elements | |
parent | 9e120a90dac851bec98c5bd597e690714ffd93ad (diff) |
fix inventory vs. hardware type selection, RT#33425
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/tr-select-inventory_item.html | 5 |
1 files changed, 4 insertions, 1 deletions
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 &> <TD> <& 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 &> </TD> </TR> % } <%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).')'; + </%init> |