FIX : extrafields required on thirdparty
This commit is contained in:
parent
cb0b0fba7c
commit
3c0da7e2d7
@ -195,7 +195,11 @@ if (empty($reshook))
|
||||
|
||||
// Fill array 'array_options' with data from add form
|
||||
$ret = $extrafields->setOptionalsFromPost($extralabels,$object);
|
||||
if ($ret < 0) $error++;
|
||||
if ($ret < 0)
|
||||
{
|
||||
$error++; // This increment output "1" as text error
|
||||
$action = ($action=='add'?'create':'edit');
|
||||
}
|
||||
|
||||
if (GETPOST('deletephoto')) $object->logo = '';
|
||||
else if (! empty($_FILES['photo']['name'])) $object->logo = dol_sanitizeFileName($_FILES['photo']['name']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user