Modify saving of reference job order for job order. #762

This commit is contained in:
Korina Cordero 2023-09-28 14:41:49 +08:00 committed by Korina Cordero
parent a437a1f74e
commit 8ff3fe8d3c

View file

@ -551,7 +551,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
if (empty($ref_jo)) { if (empty($ref_jo)) {
$error_array['ref_jo'] = 'Invalid reference job order specified.'; $error_array['ref_jo'] = 'Invalid reference job order specified.';
} else { } else {
$jo->setReferenceJO($ref_jo); $jo->setReferenceJOId($ref_jo->getID());
} }
} }
@ -2158,7 +2158,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
if (empty($ref_jo)) { if (empty($ref_jo)) {
$error_array['ref_jo'] = 'Invalid reference job order specified.'; $error_array['ref_jo'] = 'Invalid reference job order specified.';
} else { } else {
$jo->setReferenceJO($ref_jo); $jo->setReferenceJOId($ref_jo->getID());
} }
} }