Explorar o código

fixed Ant Acl Base return rootTableName and primaryKey

Piotr Labudda %!s(int64=9) %!d(string=hai) anos
pai
achega
c6ffe35023
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      SE/se-lib/AntAclBase.php

+ 3 - 3
SE/se-lib/AntAclBase.php

@@ -18,8 +18,8 @@ class AntAclBase extends Core_AclBase {
   public function getName() { return $this->_name; }
   public function getNamespace() { return $this->_namespace; }
   public function getSourceName() { return 'default_db'; } // TODO: ?
-  public function getRootTableName() { $this->_rootTableName; }
-  public function getPrimaryKeyField() { $this->_primaryKey; }
+  public function getRootTableName() { return $this->_rootTableName; }
+  public function getPrimaryKeyField() { return $this->_primaryKey; }
   public function getFieldListByIdZasob() { return $this->getRealFieldListByIdZasob(); }
   public function getVirtualFieldListByIdZasob() { return []; }
   public function getVisibleFieldListByIdZasob() { return $this->getRealFieldListByIdZasob(); } // TODO: get visible fields
@@ -143,7 +143,7 @@ class AntAclBase extends Core_AclBase {
     $acl->_rootTableName = $conf['_rootTableName'];
     $acl->_namespace = $conf['namespace'];
     $acl->_fields = $conf['field']; // TODO: lazyLoading - use getFields() in all functions
-    $acl->_primaryKey = $conf['primaryKey'];
+    $acl->_primaryKey = 'ID'; // $conf['primaryKey'];
 
     //   'idZasob' => '25872',
     //   'idDatabase' => '36',