X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-part_svc.html;h=959ac8dd939e52e1efe3e33eb9986c6da1d54c88;hb=8eb6542c022ac84b125416f3fb0828b278ba600a;hp=0274ef12a8545f73efbf3ce2deacb68e4f695de2;hpb=fda64dac607987cf537bbba1e39205c2d3c1594a;p=freeside.git diff --git a/httemplate/elements/tr-select-part_svc.html b/httemplate/elements/tr-select-part_svc.html index 0274ef12a..959ac8dd9 100644 --- a/httemplate/elements/tr-select-part_svc.html +++ b/httemplate/elements/tr-select-part_svc.html @@ -5,13 +5,10 @@ % } else { - <% $opt{'label'} || 'Package definition' %> + <% $opt{'label'} || 'Service definition' %> - <% include( '/elements/select-table.html', - 'table' => 'part_svc', - 'name_col' => 'svc', - 'multiple' => 1, - #N/A 'empty_label' => '(none)', + <% include( '/elements/select-part_svc.html', + 'multiple' => 1, %opt, ) %> @@ -24,6 +21,9 @@ my( %opt ) = @_; -$opt{'part_svc'} ||= [ qsearch( 'part_svc', {} ) ]; # { disabled=>'' } ) +my %hash = (); +$hash{'svcdb'} = $opt{'svcdb'} if $opt{'svcdb'}; + +$opt{'part_svc'} ||= [ qsearch( 'part_svc', \%hash ) ]; # { disabled=>'' } )