X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Flog.html;h=b607f505d14aaabc585e5379392c964615f59777;hp=d1bfb6cc9c118ea4ed133a15061fec2f1eed9597;hb=53c4589b2950b3ed85bcacfb707430c60cd1021e;hpb=e513d7cb331d7c7d99d1ea7b5f0a5f8e08e0d725 diff --git a/httemplate/search/log.html b/httemplate/search/log.html index d1bfb6cc9..b607f505d 100644 --- a/httemplate/search/log.html +++ b/httemplate/search/log.html @@ -1,6 +1,7 @@ <& elements/search.html, 'title' => 'System Log', 'name_singular' => 'event', + 'menubar' => \@menubar, 'html_init' => include('.head'), 'query' => $query, 'count_query' => $count_query, @@ -137,7 +138,7 @@ my $tt_sub = sub { return '' if @context == 1 and length($log->message) <= 60; my $html = '
'.(shift @context).'
'; my $pre = '↳'; - foreach (@context, $log->message) { + foreach (map encode_entities($_), @context, $log->message) { $html .= "
$pre$_
"; $pre = '   '.$pre; } @@ -204,6 +205,9 @@ my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" unless $curuser->access_right([ 'View system logs', 'Configuration' ]); +my @menubar = (); +push @menubar, qq(Configure conditions for sending email when logging), + $cgi->param('min_level', 0) unless defined($cgi->param('min_level')); $cgi->param('max_level', 7) unless defined($cgi->param('max_level'));