projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use generic Configuration ACL for browsing the outgoing email log
[freeside.git]
/
httemplate
/
elements
/
tr-select-pkg_class.html
diff --git
a/httemplate/elements/tr-select-pkg_class.html
b/httemplate/elements/tr-select-pkg_class.html
index
ece4b58
..
28ed5d6
100644
(file)
--- a/
httemplate/elements/tr-select-pkg_class.html
+++ b/
httemplate/elements/tr-select-pkg_class.html
@@
-1,6
+1,6
@@
-% if (
$count
== 0 ) {
+% if (
scalar(@{ $opt{'pkg_class'} })
== 0 ) {
- <INPUT TYPE="hidden" NAME="<%
$opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE="">
+ <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE="">
% } else {
% } else {
@@
-22,6
+22,6
@@
my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};
my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};
-
my $count = scalar( qsearch( 'pkg_class', {} ) )
;
+
$opt{'pkg_class'} ||= [ qsearch( 'pkg_class', { disabled=>'' } ) ]
;
</%init>
</%init>