Skip to content

Commit

Permalink
Merge pull request #1307 from creative-commoners/pulls/5.3/prevent-re…
Browse files Browse the repository at this point in the history
…cursion

FIX Call property directly to prevent infinite recursion
  • Loading branch information
GuySartorelli authored Jan 15, 2025
2 parents 741486c + e9bbe3d commit 720284f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Forms/TextCheckboxGroupField.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public function getMessageType()

public function getMessageCast()
{
$message = parent::getMessage();
if ($message) {
if ($this->message) {
return parent::getMessageCast();
}
foreach ($this->getChildren() as $field) {
Expand Down

0 comments on commit 720284f

Please sign in to comment.