Skip to content

Commit

Permalink
Merge branch 'v4.1.8' into v4.2.0-forms
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/core/helpers/ConditionHelper.php
  • Loading branch information
BenParizek committed Mar 7, 2024
2 parents 4205b33 + 631b4db commit fca1655
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public function getLabel(): string

public function getExclusiveQueryParams(): array
{
return [];
return [
'twigExpression',
];
}

public function getConfig(): array
Expand Down
8 changes: 7 additions & 1 deletion src/core/helpers/ConditionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ class ConditionHelper
{
public static function registerConditionRuleTypes(RegisterConditionRuleTypesEvent $event): void
{
if (!$event->sender->elementType === TransactionalEmailElement::class) {
$elementType = $event->sender?->elementType;

if ($elementType === null) {
return;
}

if (!is_subclass_of($elementType, Element::class)) {
return;
}

Expand Down

0 comments on commit fca1655

Please sign in to comment.