projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix agent override of invoice_omit_due_date, RT#73002
[freeside.git]
/
httemplate
/
edit
/
log_email.html
diff --git
a/httemplate/edit/log_email.html
b/httemplate/edit/log_email.html
index
709a240
..
b79aba9
100644
(file)
--- a/
httemplate/edit/log_email.html
+++ b/
httemplate/edit/log_email.html
@@
-8,10
+8,16
@@
'labels' => { '' => '(all)', map { $_ => $_ } @contexts },
'curr_value' => scalar($cgi->param('context')),
},
'labels' => { '' => '(all)', map { $_ => $_ } @contexts },
'curr_value' => scalar($cgi->param('context')),
},
+ { 'field' => 'context_height',
+ 'type' => 'checkbox',
+ 'postfix' => 'Only match most specific context',
+ 'value' => 1,
+ 'curr_value' => scalar($cgi->param('context_height')),
+ },
{ 'field' => 'min_level',
'type' => 'select',
{ 'field' => 'min_level',
'type' => 'select',
- 'options' => [
0..7
],
- 'labels' => {
map {$_ => $FS::Log::LEVELS[$_]} 0..7
},
+ 'options' => [
&FS::Log::levelnums
],
+ 'labels' => {
&FS::Log::levelmap
},
'curr_value' => scalar($cgi->param('min_level')),
},
'to_addr',
'curr_value' => scalar($cgi->param('min_level')),
},
'to_addr',
@@
-24,6
+30,7
@@
],
'labels' => {
'context' => 'Context',
],
'labels' => {
'context' => 'Context',
+ 'context_height' => '',
'min_level' => 'Min. Level',
'to_addr' => 'To',
'msgnum' => 'Message',
'min_level' => 'Min. Level',
'to_addr' => 'To',
'msgnum' => 'Message',
@@
-44,6
+51,10
@@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right([ 'View system logs', 'Configuration' ]);
my $msgnum = $cgi->param('msgnum');
unless $FS::CurrentUser::CurrentUser->access_right([ 'View system logs', 'Configuration' ]);
my $msgnum = $cgi->param('msgnum');
+
+# XXX This attempt to set a default message isn't working, not sure why
+# $msgnum gets set correctly, but isn't selected in the popup window...fix later
+
unless ($msgnum) {
my ($msg_template) = qsearch('msg_template',{ msgname => 'System log' });
# doesn't seem worth having a config just for the default selected template
unless ($msgnum) {
my ($msg_template) = qsearch('msg_template',{ msgname => 'System log' });
# doesn't seem worth having a config just for the default selected template