projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no need for fix for #74270 in 5.x, FK enforcement was strict in 4.x
[freeside.git]
/
httemplate
/
elements
/
tr-select-part_svc.html
diff --git
a/httemplate/elements/tr-select-part_svc.html
b/httemplate/elements/tr-select-part_svc.html
index
0274ef1
..
959ac8d
100644
(file)
--- a/
httemplate/elements/tr-select-part_svc.html
+++ b/
httemplate/elements/tr-select-part_svc.html
@@
-5,13
+5,10
@@
% } else {
<TR>
% } else {
<TR>
- <TD ALIGN="right"><% $opt{'label'} || '
Packag
e definition' %></TD>
+ <TD ALIGN="right"><% $opt{'label'} || '
Servic
e definition' %></TD>
<TD>
<TD>
- <% 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,
)
%>
%opt,
)
%>
@@
-24,6
+21,9
@@
my( %opt ) = @_;
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=>'' } )
</%init>
</%init>