Преглед изворни кода

Se actualiza a tenancyId el parámetro que recibe desde el webservice.

Maximiliano Schvindt пре 7 година
родитељ
комит
64217333b1
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      Controller/RESTController.php

+ 3 - 3
Controller/RESTController.php

@@ -40,11 +40,11 @@ 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 {