mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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();
|
$slug = $customField->getSlug();
|
||||||
$rawValue = (isset($fields[$slug])) ? $fields[$slug] : null;
|
$rawValue = (isset($fields[$slug])) ? $fields[$slug] : null;
|
||||||
|
|
||||||
$customFieldType = $this->provider->getCustomFieldByType($customField->getType());
|
$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