From 7164783450f188d26ad7199c2ac43d8f1cc2e033 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Tue, 23 May 2023 14:17:08 +0800 Subject: [PATCH] * Fix the status error when creating a snapshot. --- api/v1/entries/hostsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/entries/hostsubmit.php b/api/v1/entries/hostsubmit.php index 3f6cbd6f26..bfb5860686 100644 --- a/api/v1/entries/hostsubmit.php +++ b/api/v1/entries/hostsubmit.php @@ -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(); }