From 6df007c1446a0e43ea7d5c0734fe152a954eb825 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 21 Mar 2025 15:29:56 +0800 Subject: [PATCH] * [bug#60714] Set extra to empty when delete doc. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 1bd07accc8..c047be256d 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3823,7 +3823,7 @@ class docModel extends model $this->dao->update($table)->set('deleted')->eq('1')->where('id')->eq($id)->exec(); $doc = $this->getByID($id); - $this->loadModel('action')->create('doc', $id, 'deleted', $doc->type, ACTIONMODEL::CAN_UNDELETED); + $this->loadModel('action')->create('doc', $id, 'deleted', '', ACTIONMODEL::CAN_UNDELETED); return !dao::isError(); }