[Vtigercrm-developers] How to catch the module field modified in the vtiger 6 event-handler?

Holbok István holbok at gmail.com
Wed Jul 9 20:28:32 GMT 2014


Dear vtiger Community,

Is there any method to catch a field data change or modify event in a 
vtiger module e.g. in Contacts?

In the <modulename>Handler.php I can define for the event e.g. 
'vtiger.entity.beforesave' a unique handler and I can access the 
$entityData object for the record of the module. But I did not realize 
how to know what is the change in this object before save.

Is there any built in method to determine what a field was changed?

I need to run an event handler in the frame of 
'vtiger.entity.beforesave' or even 'vtiger.entity.aftersave' with a 
specific ON_THIS_FIELD_MODIFIED condition.

The vtiger Workflow manager somehow can handle this in case 
VTWorkflowManager::$ON_MODIFY

Any idea?

Kindest regards:
Istvan


-- 
üdvözlettel:

*Holbok István*

+3670-342-0900
*e-mail:* holbok at gmail.com
*SkyPe:* holboki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140709/35debb56/attachment.html>


More information about the vtigercrm-developers mailing list