[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* +*********************************************************************************** 4 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 * *********************************************************************************** */ 11 12 class Leads_Edit_View extends Vtiger_Edit_View { 13 14 public function process(Vtiger_Request $request) { 15 $moduleName = $request->getModule(); 16 $recordId = $request->get('record'); 17 $recordModel = $this->record; 18 if(!$recordModel){ 19 if (!empty($recordId)) { 20 $recordModel = Vtiger_Record_Model::getInstanceById($recordId, $moduleName); 21 } else { 22 $recordModel = Vtiger_Record_Model::getCleanInstance($moduleName); 23 } 24 } 25 26 $viewer = $this->getViewer($request); 27 28 $salutationFieldModel = Vtiger_Field_Model::getInstance('salutationtype', $recordModel->getModule()); 29 // Fix for http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7851 30 $salutationType = $request->get('salutationtype'); 31 if(!empty($salutationType)){ 32 $salutationFieldModel->set('fieldvalue', $request->get('salutationtype')); 33 } 34 else{ 35 $salutationFieldModel->set('fieldvalue', $recordModel->get('salutationtype')); 36 } 37 $viewer->assign('SALUTATION_FIELD_MODEL', $salutationFieldModel); 38 39 parent::process($request); 40 } 41 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |