[Vtigercrm-developers] VTiger 6. Quick edit field in detail view

Michał Janicki michal_janicki at wp.pl
Mon Apr 15 16:12:55 UTC 2013


Thanks for your reply.

 

Is it possible to block calls JS events responsible for the quick save?

 

From: vtigercrm-developers-bounces at lists.vtigercrm.com [mailto:vtigercrm-developers-bounces at lists.vtigercrm.com] On Behalf Of Adam Heinz
Sent: Monday, April 15, 2013 5:06 PM
To: vtigercrm-developers at lists.vtigercrm.com
Subject: Re: [Vtigercrm-developers] VTiger 6. Quick edit field in detail view

 

You don't.  If you look at the beforesave calls [1] or dig a little deeper into the VTEventTrigger.trigger [2], you'll see that an exception is only thrown if a handler dependency deadlock is encountered, and there are no alternate control flow mechanisms.  I've seen the suggestion before to prevent the save with javascript, but that doesn't stop creative users, and it doesn't stop web service calls either.

 

[1] http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/data/CRMEntity.php#L842

[2] http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/events/VTEventTrigger.inc#L110

 

On Mon, Apr 15, 2013 at 10:58 AM, Michał Janicki <michal_janicki at wp.pl> wrote:

Hello,

 

In the module (Accounts) I have a custom field. 

In another, I have a function that validates that the field contains the correct values. 

How do I stop the save field value where my function returns false?

 

Regards,

Michal Janicki


_______________________________________________
http://www.vtiger.com/

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130415/5f6f2a59/attachment.html>


More information about the vtigercrm-developers mailing list