Ejemplo n.º 1
1
 public function process(Vtiger_Request $request)
 {
     //To stop saveing the value of salutation as '--None--'
     $salutationType = $request->get('salutationtype');
     if ($salutationType === '--None--') {
         $request->set('salutationtype', '');
     }
     parent::process($request);
 }
Ejemplo n.º 2
0
 /**
  * Function to get the record model based on the request parameters
  * @param Vtiger_Request $request
  * @return Vtiger_Record_Model or Module specific Record Model instance
  */
 protected function getRecordModelFromRequest(Vtiger_Request $request)
 {
     $recordModel = parent::getRecordModelFromRequest($request);
     $recordModel->set('commentcontent', $request->getRaw('commentcontent'));
     $recordModel->set('reasontoedit', $request->getRaw('reasontoedit'));
     return $recordModel;
 }
Ejemplo n.º 3
0
 public function process(Vtiger_Request $request)
 {
     //Restrict to store indirect relationship from Potentials to Contacts
     $sourceModule = $request->get('sourceModule');
     $relationOperation = $request->get('relationOperation');
     if ($relationOperation && $sourceModule === 'Contacts') {
         $request->set('relationOperation', false);
     }
     parent::process($request);
 }
Ejemplo n.º 4
0
 public function process(Vtiger_Request $request)
 {
     $result = Vtiger_Util_Helper::transformUploadedFiles($_FILES, true);
     $_FILES = $result['imagename'];
     //To stop saveing the value of salutation as '--None--'
     $salutationType = $request->get('salutationtype');
     if ($salutationType === '--None--') {
         $request->set('salutationtype', '');
     }
     parent::process($request);
 }
Ejemplo n.º 5
0
 protected function getRecordModelFromRequest(Vtiger_Request $request)
 {
     return parent::getRecordModelFromRequest($request);
 }
Ejemplo n.º 6
0
 public function process(Vtiger_Request $request)
 {
     $result = Vtiger_Util_Helper::transformUploadedFiles($_FILES, true);
     $_FILES = $result['imagename'];
     parent::process($request);
 }