Skip to content
Snippets Groups Projects
Commit a94c7a99 authored by nicolas lebozec's avatar nicolas lebozec
Browse files

FIX #23885 TIME 0:30 Change the ! empty by a notEmpty (intType)

parent 4242c6a4
No related branches found
No related tags found
No related merge requests found
......@@ -378,7 +378,7 @@ class ResourceControlController
foreach ($indexingModelFields as $indexingModelField) {
if (strpos($indexingModelField['identifier'], 'indexingCustomField_') !== false) {
$customFieldId = explode('_', $indexingModelField['identifier'])[1];
if ($indexingModelField['mandatory'] && empty($body['customFields'][$customFieldId])) {
if ($indexingModelField['mandatory'] && Validator::intType()->notEmpty()->validate($body['customFields'][$customFieldId])) {
return ['errors' => "Body customFields[{$customFieldId}] is empty"];
}
if (!empty($body['customFields'][$customFieldId])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment