Browse Source

Merge branch 'master' into FD3-143

gabriel 7 năm trước cách đây
mục cha
commit
38007cef4b
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      Controller/RESTController.php

+ 3 - 3
Controller/RESTController.php

@@ -43,11 +43,11 @@ abstract class RESTController extends VoryxController
     {
         $em = $this->getDoctrine()->getManager();
         $filters = !is_null($paramFetcher->get('filters')) ? $paramFetcher->get('filters') : array();
-        if (isset($filters['tenancy_id'])) {
+        if (isset($filters['tenancyId'])) {
             // tengo que buscar por tenencia.
             $tenancyService = $this->container->get('base_tenancy.tenancy_service');
-            $tenancyService->setTenancy($filters['tenancy_id']);
-            unset($filters['tenancy_id']);
+            $tenancyService->setTenancy($filters['tenancyId']);
+            unset($filters['tenancyId']);
         }
         if (isset($filters['qb-criteria'])) {
             try {