Merge pull request #702 from kquick/fix_api_push
Handle case where jobset has no defined errormsg for api/jobsets
This commit is contained in:
commit
2d092a6fbc
|
@ -88,7 +88,7 @@ sub jobsetToHash {
|
|||
triggertime => $jobset->triggertime,
|
||||
fetcherrormsg => $jobset->fetcherrormsg,
|
||||
errortime => $jobset->errortime,
|
||||
haserrormsg => $jobset->errormsg eq "" ? JSON::false : JSON::true
|
||||
haserrormsg => defined($jobset->errormsg) && $jobset->errormsg ne "" ? JSON::true : JSON::false
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue