X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-part_svc.html;h=efe18a0e603c2a971a6aa3c7664d7f783461da5a;hp=af5148749786584ce1cc2ee266ccdd48cbb5ba18;hb=4639e25a658d9a0bf295415642fae8e8cdad846a;hpb=81e426fe755eaea508041bc2d7b25ac44c777434 diff --git a/httemplate/elements/tr-select-part_svc.html b/httemplate/elements/tr-select-part_svc.html index af5148749..efe18a0e6 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=>'' } )