Remove useless variable. Action: index office.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 15 May 2012 14:13:03 +0000 (16:13 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 15 May 2012 14:13:03 +0000 (16:13 +0200)
In the PHP code for the index action in the office module
(for company users) there was a useless variable which was not
needed.

apps/companyfront/modules/office/actions/actions.class.php

index b4e3d73..f134f0e 100644 (file)
@@ -19,15 +19,12 @@ class officeActions extends sfActions
     //Just 1 user owns a company. Should this be improved?
     $companyId = CompanyTable::getInstance()->findOneByUserId($userId)->getId();
 
-    $this->offices = Doctrine_Core::getTable('Office')->findByCompanyId($companyId);
-
     $query=OfficeTable::getInstance()->getOfficesByCompanyIdQuery($companyId);
 
     $this->pager = new sfDoctrinePager('Office', sfConfig::get('app_max_offices_on_pager'));
     $this->pager->setQuery($query);
     $this->pager->setPage($request->getParameter('page', 1));
     $this->pager->init();
-
   }
 
   public function executeShow(sfWebRequest $request)