Преглед на файлове

Cambio al obtener la tenencia base

gabriel преди 7 години
родител
ревизия
0d4be25bee
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Controller/OAuthController.php

+ 1 - 1
Controller/OAuthController.php

@@ -34,7 +34,7 @@ class OAuthController extends Controller
                 $t[] = compact('id', 'name');
             }
             $data['tenancies'] = $t;
-            $tenancyCurrent = $user->getTenancyCurrent();
+            $tenancyCurrent = $user->getTenancyEntityCurrent();
             $data['tenancyCurrent'] = array();
             if (!is_null($tenancyCurrent)) {
                 $data['tenancyCurrent']['id'] = $tenancyCurrent->getId();