From 915ae2a5a5cbe3bf70a9be5024ef6323c63f47b0 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 11 Feb 2015 17:19:02 -0800 Subject: [PATCH] fix inventory vs. hardware type selection, RT#33425 --- httemplate/elements/tr-select-inventory_item.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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).')'; + -- 2.11.0