projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add comment selection and change zero recurring flags, RT#41733
[freeside.git]
/
httemplate
/
elements
/
checkboxes-table.html
diff --git
a/httemplate/elements/checkboxes-table.html
b/httemplate/elements/checkboxes-table.html
index
b6b04d1
..
671cd1f
100644
(file)
--- a/
httemplate/elements/checkboxes-table.html
+++ b/
httemplate/elements/checkboxes-table.html
@@
-46,7
+46,7
@@
%
% my $hashref = $opt{'hashref'} || {};
%
%
% my $hashref = $opt{'hashref'} || {};
%
-% my $extra_sql = '';
+% my $extra_sql =
$opt{'extra_sql'} ||
'';
%
% if ( $opt{'agent_virt'} ) {
% $extra_sql .= ' AND' . $FS::CurrentUser::CurrentUser->agentnums_sql(
%
% if ( $opt{'agent_virt'} ) {
% $extra_sql .= ' AND' . $FS::CurrentUser::CurrentUser->agentnums_sql(
@@
-81,6
+81,10
@@
% ? 'CHECKED'
% : '';
%
% ? 'CHECKED'
% : '';
%
+% } elsif ( !$sourcenum ) { # newly created object, has no links yet
+%
+% $checked = $opt{'default'} ? 'CHECKED' : ''
+%
% } else {
%
% $checked = qsearchs( $opt{'link_table'}, {
% } else {
%
% $checked = qsearchs( $opt{'link_table'}, {