AnsweredAssumed Answered

before_save hook save() insert twice to database

Question asked by sugardeveloper11 on Oct 22, 2015
Latest reply on Jan 4, 2018 by carloszaragoza
Hi there,

I tried to insert a record from before_save hook with sugarbean, but the record inserted twice.

I have read the solution from 

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Module_Framework...

there is a "ignore_update_c", where shoudl I declare it?

Any other solution to prevent inserting twice?

Thanks!!

Outcomes