Fix: If a project must be linked to any companies (suppliers or not),
project must be not be set as limited to customer but must be not linked to any particular thirdparty
This commit is contained in:
parent
25257ee873
commit
3a8885eea6
@ -693,13 +693,15 @@ if ($action == 'create')
|
||||
if ($conf->projet->enabled)
|
||||
{
|
||||
$langs->load("project");
|
||||
|
||||
|
||||
print '<tr><td valign="top">'.$langs->trans("Project").'</td><td>';
|
||||
/* Fix: If a project must be linked to any companies (suppliers or not), project must be not be set as limited to customer but must be not linked to any particular thirdparty
|
||||
if ($societe->fournisseur==1)
|
||||
$numprojet=select_projects(-1,$_POST["projectid"],'projectid');
|
||||
else
|
||||
$numprojet=select_projects($societe->id,$_POST["projectid"],'projectid');
|
||||
//$numprojet=select_projects($soc->id,GETPOST('projectid','int'),'projectid');
|
||||
*/
|
||||
$numprojet=select_projects($soc->id,GETPOST('projectid','int'),'projectid');
|
||||
if ($numprojet==0)
|
||||
{
|
||||
print ' <a href="'.DOL_DOCUMENT_ROOT.'/projet/fiche.php?socid='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user