浏览代码

fixed fields order in create form for AntAcl

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

+ 5 - 2
SE/se-lib/AntAclBase.php

@@ -27,7 +27,10 @@ class AntAclBase extends Core_AclBase {
 	public function getSourceName() { return 'default_db'; } // TODO: ?
 	public function getRootTableName() { return $this->_rootTableName; }
 	public function getPrimaryKeyField() { return $this->_primaryKey; }
-	public function getFieldListByIdZasob() { return $this->getRealFieldListByIdZasob(); }
+	public function getFieldListByIdZasob() {
+		$this->_fetchInfoFromZasobyIfNeeded();
+		return $this->getRealFieldListByIdZasob();
+	}
 	public function getVirtualFieldListByIdZasob() { return []; }
 
 	public function _fetchInfoFromZasobyIfNeeded() {
@@ -39,7 +42,7 @@ class AntAclBase extends Core_AclBase {
 				function ($id) { return $id > 0; }
 			);
 			if (!empty($zasobyIds)) {
-				DBG::log("DBG sort fields - TODO: ids [".implode(",", $zasobyIds)."]");
+				DBG::log("DBG sort fields - ids [".implode(",", $zasobyIds)."]");
 				$zasobyInfo = DB::getPDO()->fetchAllByKey("
 					select z.ID, z.DESC_PL, z.OPIS, z.SORT_PRIO
 					from CRM_LISTA_ZASOBOW z