From 4006e8a08a76fa4aa4fbb26d785dd72b590544b6 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 31 Jul 2025 10:13:00 +0800 Subject: [PATCH] * [bug#64432,done,0.1h] get editors by object type. --- module/doc/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index eaced65bcc..0483cd48de 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3651,14 +3651,15 @@ class docModel extends model * Get editors of a document. * * @param int $docID + * @param string $objectType * @access public * @return array */ - public function getEditors(int $docID = 0): array + public function getEditors(int $docID = 0, string $objectType = 'doc'): array { if(!$docID) return array(); $actions = $this->dao->select('*')->from(TABLE_ACTION) - ->where('objectType')->eq('doc') + ->where('objectType')->eq($objectType) ->andWhere('objectID')->eq($docID) ->andWhere('action')->in('edited') ->orderBy('date_desc')