* [task#143694,doing,0.5h] Add the judge of has builtin scopes.

This commit is contained in:
xieqiyu
2025-05-23 09:55:26 +08:00
committed by 刘刚
parent 97cfb26c2d
commit 61ca1cf50c
+3
View File
@@ -4056,6 +4056,9 @@ class docModel extends model
*/
public function addBuiltInScopes()
{
$builtInScopes = $this->dao->select('*')->from(TABLE_DOCLIB)->where('type')->eq('template')->andWhere('main')->eq('1')->fetchAll();
if(!empty($builtInScopes)) return;
foreach($this->lang->docTemplate->builtInScopes as $vision => $scopeList)
{
foreach($scopeList as $scopeName)