* [task#143694,doing,0.5h] Add the unit test of gettemplatescopes.

This commit is contained in:
xieqiyu
2025-05-22 10:28:26 +08:00
committed by 刘刚
parent 0a55f1c32f
commit 658cddaf33
2 changed files with 50 additions and 1 deletions
+1 -1
View File
@@ -4435,7 +4435,7 @@ class docModel extends model
* @access public
* @return array
*/
public function getTemplateScopes()
public function getTemplateScopes(): array
{
return $this->dao->select('*')->from(TABLE_DOCLIB)->where('type')->eq('template')->andWhere('vision')->eq($this->config->vision)->andWhere('deleted')->eq('0')->fetchAll('id');
}