Skip to content

Commit

Permalink
COMCL-842: Fix issue with editing direct debit mandate
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp authored Sep 18, 2024
1 parent 7e6f2b5 commit e566443
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/ManualDirectDebit/Hook/BuildForm/CustomData.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public function run() {
private function checkIfDirectDebitMandateInGroupTree() {
$customGroupTree = $this->form->getVar('_groupTree');

return array_key_exists($this->directDebitMandateId, $customGroupTree);

return !empty($customGroupTree) && array_key_exists($this->directDebitMandateId, $customGroupTree);
}

/**
Expand Down

0 comments on commit e566443

Please sign in to comment.