Skip to content

Commit

Permalink
Quick fix for Issue #503 - don't show archived persons in members int…
Browse files Browse the repository at this point in the history
…erface
  • Loading branch information
tbar0970 committed Jul 22, 2018
1 parent cb99125 commit 4a7467b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db_objects/family.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,10 @@ function printCustomSummary($showMembersCallback)

function getMemberData()
{
//$objectType = $GLOBALS['user_system']->getCurrentUser() ? 'person' : 'member';
$restriction = $GLOBALS['user_system']->getCurrentUser() ? Array('!status' => 'archived') : Array();
if (!isset($this->_tmp['members'])) {
$this->_tmp['members'] = $GLOBALS['system']->getDBObjectData('person', Array('familyid' => $this->id), 'OR', 'ab.rank, gender DESC');
$this->_tmp['members'] = $GLOBALS['system']->getDBObjectData('person', Array('familyid' => $this->id)+$restriction, 'AND', 'ab.rank, gender DESC');
}
return $this->_tmp['members'];
}
Expand Down

0 comments on commit 4a7467b

Please sign in to comment.