mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
transform raw value to serialized value in isEmptyValue
This commit is contained in:
parent
0e0a764652
commit
84128fa718
@ -63,10 +63,11 @@ class CustomFieldsHelper
|
||||
{
|
||||
$slug = $customField->getSlug();
|
||||
$rawValue = (isset($fields[$slug])) ? $fields[$slug] : null;
|
||||
|
||||
$customFieldType = $this->provider->getCustomFieldByType($customField->getType());
|
||||
|
||||
return $customFieldType->isEmptyValue($rawValue, $customField);
|
||||
$deserializedValue = $customFieldType->deserialize($rawValue, $customField);
|
||||
|
||||
return $customFieldType->isEmptyValue($deserializedValue, $customField);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user