Explorar o código

+ save sourceNs in cache in TableAcl

Piotr Labudda %!s(int64=7) %!d(string=hai) anos
pai
achega
f5908abca0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 	}