[Vtigercrm-developers] add/remove relatedlist entry trigger eventhandler

Alan Lord alanslists at gmail.com
Tue Jun 2 09:43:04 GMT 2015



Thanks.

useful info,

Al

On 02/06/15 08:01, Mariusz Krzaczkowski wrote:
> Hi Alan,
>
> Although 'Mod Tracker' is a module, it has some scripts built-in in
> order to work properly. If someone wants to add a similar module, he
> would have to add scripts, e.g. here:
>
> in file data\CRMEntity.php in function trackLinkedInfo and trackUnLinkedInfo
>
>> // @Note: We should extend this to event handlers
>> if(vtlib_isModuleActive('ModTracker')) {
>> // Track the time the relation was added
>> require_once 'modules/ModTracker/ModTracker.php';
>> ModTracker::linkRelation($module, $crmid, $with_module, $with_crmid);
>> }
>>
>> // @Note: We should extend this to event handlers
>> if(vtlib_isModuleActive('ModTracker')) {
>> //Track the time the relation was deleted
>> require_once 'modules/ModTracker/ModTracker.php';
>> ModTracker::unLinkRelation($module, $crmid, $with_module, $with_crmid);
>> }
>>
> We solved it at the same time when we improved the handlers, you can see
> an example of the solution here:
> https://github.com/YetiForceCompany/YetiForceCRM/commit/58e930bba74f1f1fe5778dc1780dd1090a469914 this
> solution could be implemented to Vtiger 6.3.





More information about the vtigercrm-developers mailing list