From fa4e7b5f119fa825db1466b58074905492ec6a44 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Thu, 2 Feb 2023 05:24:13 +0000 Subject: [PATCH] * Fix bug #31826. --- module/zahost/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zahost/control.php b/module/zahost/control.php index 504a12eea7..a6f09f613c 100644 --- a/module/zahost/control.php +++ b/module/zahost/control.php @@ -168,7 +168,7 @@ class zahost extends control return print(js::confirm($this->lang->zahost->confirmDelete, inlink('delete', "hostID=$hostID&confirm=yes"))); } - $this->dao->update(TABLE_ZAHOST)->set('deleted')->eq(1)->where('id')->eq($hostID)->exec(); + $this->zahost->delete(TABLE_ZAHOST, $hostID); $this->loadModel('action')->create('zahost', $hostID, 'deleted'); /* if ajax request, send result. */