mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue processwire/processwire-issues#1097
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user