|
|
@@ -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
|