Fix [ bug #668 ] Event created with a profile is not visible by the same

profile
This commit is contained in:
fhenry 2013-01-09 20:34:36 +01:00
parent abccfdd168
commit e369d5dfd8

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>';