فهرست منبع

fixed query for AntAcl table to use namespace filter

Piotr Labudda 8 سال پیش
والد
کامیت
d2b5d04035
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      SE/se-lib/TableAjax.php

+ 4 - 0
SE/se-lib/TableAjax.php

@@ -11,6 +11,7 @@ Lib::loadClass('ProcesHelper');
 Lib::loadClass('Router');
 Lib::loadClass('Route_UrlAction');
 Lib::loadClass('Core_AclHelper');
+Lib::loadClass('AntAclBase');
 
 // TODO: change all links: MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID={idZasob} to _route=ViewTableAjax&typeName=p5_default_db:{tableName}
 
@@ -5501,6 +5502,9 @@ jQuery(document).ready(function(){
 		}
 		DBG::log($jsonData->cols, 'array', "\$jsonData->cols");
 		$jsonData->rows = array();
+		if ($acl instanceof AntAclBase) {
+			$params['f_is_instance'] = $acl->getNamespace();
+		}
 		$queryFeatures = $acl->buildQuery($params);
 		$jsonData->total = $queryFeatures->getTotal();
 		$listItems = $queryFeatures->getItems();