Created
July 14, 2014 17:44
Revisions
-
eggsurplus created this gist
Jul 14, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ if(empty($lead->id)) { $lead->id = create_guid(); $lead->new_with_id = true; } //BEGIN - eggsurplus - update existing leads if(!empty($_POST['record'])) { //get the existing bean (returns null if a bad ID is passed so a new Lead will be created still) $lead = BeanFactory::getBean('Leads',$_POST['record']); $lead->new_with_id = false; } //END - eggsurplus