Skip to content

Commit

Permalink
Issue #30 - clear family photos too
Browse files Browse the repository at this point in the history
  • Loading branch information
tbar0970 committed Jul 18, 2018
1 parent 446f01a commit 0c9e649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db_objects/family.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ private function savePhoto() {
}
}

private function _clearPhoto()
private function clearPhoto()
{
$db =& $GLOBALS['db'];
$SQL = 'DELETE FROM family_photo WHERE familyid = '.(int)$this->id;
Expand Down Expand Up @@ -593,6 +593,7 @@ public function archiveAndClean()
$this->setValue($fieldname, '');
}
}
$this->clearPhoto();
if (!$this->save(FALSE)) return FALSE;

$notes = $GLOBALS['system']->getDBObjectData('family_note', Array('familyid' => $this->id));
Expand Down

0 comments on commit 0c9e649

Please sign in to comment.