From 409c0c0a687a7c00b325f7a93c3d839a94dc739b Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 4 Jan 2024 13:27:05 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1851 --- .../Fieldtype/FieldtypeOptions/SelectableOptionArray.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionArray.php b/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionArray.php index 5868a732..1b31bb24 100644 --- a/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionArray.php +++ b/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionArray.php @@ -223,7 +223,7 @@ class SelectableOptionArray extends WireArray { foreach($this as $option) { /** @var SelectableOption $option */ $v = $option->getProperty($property); - if($v !== $value) continue; + if("$v" !== "$value") continue; $match = $option; break; }