Skip to content

Commit ea533fb

Browse files
committed
Fixed #17236
1 parent a28a939 commit ea533fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fields/conditions/MoneyFieldConditionRule.php

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ protected function matchFieldValue($value): bool
150150
return true;
151151
}
152152

153+
if ($value instanceof MoneyLibrary) {
154+
$value = (float)$value->getAmount();
155+
}
156+
153157
/** @var int|float|null $value */
154158
return $this->matchValue($value);
155159
}

0 commit comments

Comments
 (0)