FIX : Let ability to use IDPROF verifications even if new entry is "private"

We do not check for duplicate or empty id_prof fields while inserting a new entry when verifications options are set to "ON" in the third party configuration panel.
This commit is contained in:
Sof 2015-02-12 13:00:22 +01:00
parent 122a7c199c
commit 09013c7e1c

View File

@ -242,6 +242,9 @@ if (empty($reshook))
} }
// Check for duplicate or mandatory prof id // Check for duplicate or mandatory prof id
// Only for companies
if (!($object->particulier || $private))
{
for ($i = 1; $i < 5; $i++) for ($i = 1; $i < 5; $i++)
{ {
$slabel="idprof".$i; $slabel="idprof".$i;
@ -268,6 +271,7 @@ if (empty($reshook))
} }
} }
} }
}
if (! $error) if (! $error)
{ {