Merge pull request #586 from FHenry/3.3

Fix [ bug #668 ] Event created with a profile is not visible by the same
This commit is contained in:
Laurent Destailleur 2013-01-09 11:49:03 -08:00
commit 128fef0ea2

View File

@ -555,7 +555,13 @@ if ($action == 'create')
}
else
{
print $form->select_company('','socid','',1,1);
//For external user force the company to user company
if (!empty($user->societe_id)) {
print $form->select_company($user->societe_id,'socid','',1,1);
} else {
print $form->select_company('','socid','',1,1);
}
}
print '</td></tr>';