projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read only access to message templates, RT#1`7477
[freeside.git]
/
httemplate
/
edit
/
elements
/
class_Common.html
diff --git
a/httemplate/edit/elements/class_Common.html
b/httemplate/edit/elements/class_Common.html
index
69da4db
..
0a0916e
100644
(file)
--- a/
httemplate/edit/elements/class_Common.html
+++ b/
httemplate/edit/elements/class_Common.html
@@
-22,21
+22,22
@@
my %opt = @_;
my $table = $opt{'table'};
my @category;
my $table = $opt{'table'};
my @category;
+my $category_table;
unless ( $opt{'nocat'} ) {
unless ( $opt{'nocat'} ) {
- (
my
$category_table = $table ) =~ s/class/category/ or die;
+ ( $category_table = $table ) =~ s/class/category/ or die;
@category = qsearch($category_table, { 'disabled' => '' });
}
my $fields = [ 'classname',
(scalar(@category)
@category = qsearch($category_table, { 'disabled' => '' });
}
my $fields = [ 'classname',
(scalar(@category)
- ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>
'pkg_category'
, 'name_col'=>'categoryname' }
+ ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>
$category_table
, 'name_col'=>'categoryname' }
: { field=>'categorynum', type=>'hidden' }
),
{ field=>'disabled', type=>'checkbox', value=>'Y', },
];
: { field=>'categorynum', type=>'hidden' }
),
{ field=>'disabled', type=>'checkbox', value=>'Y', },
];
-push @$fields,
$opt{'addl_fields'
} if $opt{'addl_fields'};
+push @$fields,
@{ $opt{'addl_fields'}
} if $opt{'addl_fields'};
my %addl_labels = ();
my %addl_labels = ();
-%addl_labels = %{
$opt{'addl_labels'}
} if $opt{'addl_labels'};
+%addl_labels = %{
$opt{'addl_labels'}
} if $opt{'addl_labels'};
</%init>
</%init>