* @param bool $showStatus
* Do we need to set status or not.
*
- * @return int|NULL
+ * @return int|null
* no of deleted notes on success, null otherwise
*/
public static function del($id, $showStatus = TRUE) {
$childNote = new CRM_Core_DAO_Note();
$childNote->id = $childId;
$childNote->delete();
- $childNote->free();
$recent[] = $childId;
}
$return = $note->delete();
- $note->free();
if ($showStatus) {
CRM_Core_Session::setStatus($status, ts('Deleted'), 'success');
}