summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Job/Mailer.pm2
-rwxr-xr-xview_job_queue.cgi1
2 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Job/Mailer.pm b/Bugzilla/Job/Mailer.pm
index e3b94894a..56b6d4f69 100644
--- a/Bugzilla/Job/Mailer.pm
+++ b/Bugzilla/Job/Mailer.pm
@@ -63,7 +63,7 @@ sub work {
sub process_job {
my ($class, $arg) = @_;
- MessageToMTA($arg, 1);
+ MessageToMTA($arg->{msg}, 1);
}
1;
diff --git a/view_job_queue.cgi b/view_job_queue.cgi
index 7accc512d..5ebe1e7a5 100755
--- a/view_job_queue.cgi
+++ b/view_job_queue.cgi
@@ -45,6 +45,7 @@ sub generate_report {
j.run_after AS run_time,
j.grabbed_until,
f.funcname AS func,
+ (SELECT COUNT(*) FROM ts_error WHERE e.jobid = j.jobid) AS error_count,
e.jobid AS error_count,
e.error_time AS error_time,
e.message AS error_message