diff --git a/src/Action/SetObjectFieldValueAction.php b/src/Action/SetObjectFieldValueAction.php index 058a131707..25911413df 100644 --- a/src/Action/SetObjectFieldValueAction.php +++ b/src/Action/SetObjectFieldValueAction.php @@ -225,7 +225,7 @@ public function __invoke(Request $request): JsonResponse $value = $dataTransformer->reverseTransform($value); } - if (!$value && FieldDescriptionInterface::TYPE_CHOICE === $fieldDescription->getType()) { + if (null === $value && FieldDescriptionInterface::TYPE_CHOICE === $fieldDescription->getType()) { return new JsonResponse(sprintf( 'Edit failed, object with id: %s not found in association: %s.', $originalValue,