X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-part_svc.html;h=959ac8dd939e52e1efe3e33eb9986c6da1d54c88;hp=af5148749786584ce1cc2ee266ccdd48cbb5ba18;hb=37e92c220a54636ebc7900cd59ec6ce56790ede8;hpb=81e426fe755eaea508041bc2d7b25ac44c777434 diff --git a/httemplate/elements/tr-select-part_svc.html b/httemplate/elements/tr-select-part_svc.html index af5148749..959ac8dd9 100644 --- a/httemplate/elements/tr-select-part_svc.html +++ b/httemplate/elements/tr-select-part_svc.html @@ -5,7 +5,7 @@ % } else { - <% $opt{'label'} || 'Package definition' %> + <% $opt{'label'} || 'Service definition' %> <% include( '/elements/select-part_svc.html', 'multiple' => 1, @@ -21,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=>'' } )