Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this fucking hack!
- $request = $_REQUEST;
- unset($_REQUEST);
- $new_contact->save();
- $_REQUEST = $request;
- /* getting to a point that whenever I have a before_save logic hook related to Contacts or Leads and it involves setting up calls, legacy code takes its meaning from $_REQUEST vars, especially with email addresses but with overall saving functionality also. Suspending the $_REQUEST and letting $object->save() do the real work just fixes it. But damn this is silly
- Same principle applies to using Contact logic hooks to update parent/related accounts.
- */
Add Comment
Please, Sign In to add comment