* [task#143694,doing,0.5h] Add the judge of has builtin scopes.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user