Bladeren bron

+ save sourceNs in cache in TableAcl

Piotr Labudda 7 jaren geleden
bovenliggende
commit
f5908abca0
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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;
 	}