[Vtigercrm-developers] custom field on quick create

Vincent Piton vincent.piton at free.fr
Fri Sep 25 10:28:50 GMT 2015


Hello,

quick and dirty solution to save custom fields :

in calendar/actions/SaveAjax.php :

 

at the end of function process :

 

global $adb;

$update_query = "UPDATE vtiger_activitycf set cf_XXX = ? WHERE activityid =
?";

$update_params = array($request->get('cf_XXX'), $result['_recordId']);

$adb->pquery($update_query, $update_params);

 

Hope it helps

Regards

 

De : Vincent Piton [mailto:vincent.piton at free.fr] 
Envoyé : lundi 21 septembre 2015 18:58
À : 'vtigercrm-developers at lists.vtigercrm.com'
<vtigercrm-developers at lists.vtigercrm.com>
Objet : custom field on quick create

 

Hello,

I would like to add a custom field to calendar Quickcreate

I updated vtiger_field set quickcreate=1 for the field and it now appears on
the quickcreate popup

But the field is not saved when you quick create an activity

The process function in calendar/actions/SaveAjax.php does not process the
custom fields

Could someone help me ?
Thanks

Vincent

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150925/065b41c3/attachment.html>


More information about the vtigercrm-developers mailing list