[ 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 Contacts_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 $this->record = $recordModel; 25 } 26 27 $viewer = $this->getViewer($request); 28 $viewer->assign('IMAGE_DETAILS', $recordModel->getImageDetails()); 29 30 $salutationFieldModel = Vtiger_Field_Model::getInstance('salutationtype', $recordModel->getModule()); 31 // Fix for http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7851 32 $salutationType = $request->get('salutationtype'); 33 if(!empty($salutationType)){ 34 $salutationFieldModel->set('fieldvalue', $request->get('salutationtype')); 35 } 36 else{ 37 $salutationFieldModel->set('fieldvalue', $recordModel->get('salutationtype')); 38 } 39 $viewer->assign('SALUTATION_FIELD_MODEL', $salutationFieldModel); 40 41 parent::process($request); 42 } 43 44 }
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 |