1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +02:00
This commit is contained in:
Ryan Cramer
2024-11-22 15:10:22 -05:00
parent ede080e2a8
commit 0ea71c3e1d

View File

@@ -528,7 +528,7 @@ class SelectableOptionManager extends Wire {
foreach($existingOptions as $existingOption) { foreach($existingOptions as $existingOption) {
$found = false; $found = false;
foreach($options as $option) { foreach($options as $option) {
if($option->id == $existingOption->id) { if($option->id == $existingOption->id || $existingOption->id && !$option->id) {
$found = true; $found = true;
break; break;
} }