Merge pull request #19388 from FHenry/14.0_fix_preselecttask_on_event_creation

FIX: preselect task on create event from task
This commit is contained in:
Laurent Destailleur 2021-11-18 20:25:03 +01:00 committed by GitHub
commit 4caeddf7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1223,7 +1223,11 @@ if ($action == 'create') {
if (!empty($projectid)) {
$projectsListId = $projectid;
}
$tid = GETPOST("projecttaskid") ? GETPOST("projecttaskid") : '';
if ($origin=='task') {
$tid= GETPOST("originid");
} else {
$tid = GETPOST("projecttaskid") ? GETPOST("projecttaskid") : '';
}
$formproject->selectTasks((!empty($societe->id) ? $societe->id : -1), $tid, 'taskid', 24, 0, '1', 1, 0, 0, 'maxwidth500', $projectsListId);
print '</td></tr>';
}