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:
commit
4caeddf7f8
@ -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>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user