From 3112c2c4050db91a3301f2058ad92a8c3291b848 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 15 May 2012 16:13:03 +0200 Subject: [PATCH] Remove useless variable. Action: index office. 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/companyfront/modules/office/actions/actions.class.php b/apps/companyfront/modules/office/actions/actions.class.php index b4e3d73..f134f0e 100644 --- a/apps/companyfront/modules/office/actions/actions.class.php +++ b/apps/companyfront/modules/office/actions/actions.class.php @@ -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) -- 2.1.4