Skip to content

Commit

Permalink
Merge branch '4.x' of https://github.com/craftcms/cms into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 6, 2024
2 parents 57744e6 + fa9c1a5 commit 11c099d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/elements/conditions/ElementCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public function __construct(?string $elementType = null, array $config = [])
throw new InvalidConfigException("Invalid element type: $elementType");
}

$this->elementType = $elementType;
if ($elementType !== null) {
$this->elementType = $elementType;
}

parent::__construct($config);
}

Expand Down

0 comments on commit 11c099d

Please sign in to comment.