Skip to content
Snippets Groups Projects
Commit 3c0da7e2 authored by Phf's avatar Phf
Browse files

FIX : extrafields required on thirdparty

parent cb0b0fba
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
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