Merge pull request #8856 from glu000/7.0

FIX: It's not possible to remove a contact which is assigned to an event #8852
This commit is contained in:
Laurent Destailleur 2018-05-25 10:14:19 +02:00 committed by GitHub
commit 3816b18c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,6 +417,7 @@ if ($action == 'update')
$object->location = GETPOST('location');
$object->socid = GETPOST("socid");
$socpeopleassigned = GETPOST("socpeopleassigned",'array');
$object->socpeopleassigned = array();
foreach ($socpeopleassigned as $cid) $object->socpeopleassigned[$cid] = array('id' => $cid);
$object->contactid = GETPOST("contactid",'int');
$object->fk_project = GETPOST("projectid",'int');