Browse Source

Revert "Show all onus from tenancy base on export"

This reverts commit d30d1a79fa682f8846718758ce0ee4e7f9b64057.
Jean Sumara Leopoldo 5 years ago
parent
commit
243bd327da
1 changed files with 4 additions and 8 deletions
  1. 4 8
      src/FTTHBundle/Repository/ONURepository.php

+ 4 - 8
src/FTTHBundle/Repository/ONURepository.php

@@ -56,14 +56,10 @@ class ONURepository extends \Doctrine\ORM\EntityRepository
                 'o.clientId'
             ])
             ->join('o.olt', "olt")
-            ->leftJoin('o.nap', "nap");
-
-        if($tenancyId != 1){
-            $query->where('o.tenancyId = :tenancyId')
-                ->setParameter('tenancyId', $tenancyId);
-        }
-
-        $query->orderBy('o.created', 'DESC')
+            ->leftJoin('o.nap', "nap")
+            ->where('o.tenancyId = :tenancyId')
+            ->setParameter('tenancyId', $tenancyId)
+            ->orderBy('o.created', 'DESC')
             ->setMaxResults($limit)
             ->setFirstResult($offset);