public function getModule() { if (!$this->module) { $moduleObj = $this->block->module; $this->module = Vtiger_Module_Model::getInstanceFromModuleObject($moduleObj); } return $this->module; }
public function getModule() { if(!$this->module) { $moduleObj = $this->block->module; //fix for opensource emailTemplate listview break if(empty($moduleObj)){ return false; } $this->module = Vtiger_Module_Model::getInstanceFromModuleObject($moduleObj); } return $this->module; }