* Fix the status error when creating a snapshot.

This commit is contained in:
zhaoke
2023-05-23 14:17:08 +08:00
parent 5e65c2e68f
commit 7164783450
+1 -1
View File
@@ -63,7 +63,7 @@ class hostSubmitEntry extends baseEntry
if($imageInfo->from != 'zentao' && in_array($imageInfo->status, array('creating', 'restoring')))
{
$hostID = is_numeric($imageInfo->snapshot) ? $imageInfo->from : $imageInfo->host;
$hostID = is_numeric($imageInfo->from) ? $imageInfo->from : $imageInfo->host;
$this->dao->update(TABLE_ZAHOST)->data(array("status" => "wait"))->where("id")->eq($hostID)->exec();
}