Merge pull request #2351 from mrsof/develop

FIX : Let ability to use IDPROF verifications even if new entry is "priv...
This commit is contained in:
Laurent Destailleur 2015-02-19 09:36:45 +01:00
commit e7a82c89e6

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)
{ {