Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created March 7, 2011 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmertic/859144 to your computer and use it in GitHub Desktop.
Save jmertic/859144 to your computer and use it in GitHub Desktop.
<?php
//To get ID
$FollowUpMeeting->save();
if( $FollowUpMeeting->parent_type == 'Contacts' && !empty($FollowUpMeeting->parent_id) )
{
//Get the current person
$person = new Contact();
$person->retrieve($FollowUpMeeting->parent_id);
$FollowUpMeeting->set_accept_status($person,'none');
$FollowUpMeeting->save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment