Update of card.php to change status

This commit is contained in:
lmarcouiller 2021-08-03 16:06:08 +02:00
parent c8fd7ccbb6
commit 6e68bf10ef

View File

@ -188,7 +188,12 @@ if (empty($reshook)) {
$object->email_from = $user->email;
$notifyTiers = GETPOST("notify_tiers_at_create", 'alpha');
$object->notify_tiers_at_create = empty($notifyTiers) ? 0 : 1;
$object->fk_user_assign = GETPOST("fk_user_assign", 'int');
$fk_user_assign = GETPOST("fk_user_assign", 'int');
if (!empty($fk_user_assign)) {
$object->fk_user_assign = $fk_user_assign;
$object->fk_statut = $object::STATUS_ASSIGNED;
}
$object->fk_project = $projectid;
$id = $object->create($user);