Fix an error when the log string is empty (#1058)
This commit is contained in:
@@ -279,7 +279,7 @@ sub jq_complete {
|
|||||||
->search({ job => $job->id }, { for => 'update' })
|
->search({ job => $job->id }, { for => 'update' })
|
||||||
->update({
|
->update({
|
||||||
status => $job->status,
|
status => $job->status,
|
||||||
log => $job->log,
|
log => (ref($job->log) eq ref('')) ? $job->log : '',
|
||||||
started => $job->started,
|
started => $job->started,
|
||||||
finished => $job->finished,
|
finished => $job->finished,
|
||||||
(($job->action eq 'hook') ? (subaction => $job->subaction) : ()),
|
(($job->action eq 'hook') ? (subaction => $job->subaction) : ()),
|
||||||
|
|||||||
Reference in New Issue
Block a user