浏览代码

+ save sourceNs in cache in TableAcl

Piotr Labudda 7 年之前
父节点
当前提交
f5908abca0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      SE/se-lib/TableAcl.php

+ 2 - 0
SE/se-lib/TableAcl.php

@@ -1468,6 +1468,7 @@ class TableAcl extends Core_AclBase {
 		$this->_fields = V::get('fields', array(), $arr);
 		$this->_virtualFieldsIdList = V::get('virtualFieldsIdList', array(), $arr);
 		$this->_types = V::get('types', array(), $arr);
+		if (!empty($arr['_sourceNamespace'])) $this->_sourceNamespace = $arr['_sourceNamespace'];
 	}
 
 	public function toArray() {
@@ -1481,6 +1482,7 @@ class TableAcl extends Core_AclBase {
 		$arr['fields'] = $this->_fields;
 		$arr['virtualFieldsIdList'] = $this->_virtualFieldsIdList;
 		$arr['types'] = $this->_types;
+		if ('default_db' !== $this->_sourceNamespace) $arr['_sourceNamespace'] = $this->_sourceNamespace;
 		return $arr;
 	}