Skip to content

Commit

Permalink
Ticket #4856 - Privacy: Membership levels from custom groups aren't d…
Browse files Browse the repository at this point in the history
…eleted with deleted content.
  • Loading branch information
AntonLV committed Dec 12, 2024
1 parent 526b67f commit fc433f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/classes/BxDolPrivacyQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ public function deleteGroupCustom($aParamsWhere)
return true;

$bResult = $this->query("DELETE FROM `sys_privacy_groups_custom` WHERE " . $sWhereClause . " LIMIT 1") !== false;
if($bResult)
$this->deleteGroupCustomMember(array('group_id' => $aGroup['id']));
if($bResult) {
$this->deleteGroupCustomMember(['group_id' => $aGroup['id']]);
$this->deleteGroupCustomMembership(['group_id' => $aGroup['id']]);
}

return $bResult;
}
Expand Down

0 comments on commit fc433f9

Please sign in to comment.