qual: phpstan for htdocs/core/actions_massactions.inc.php

htdocs/core/actions_massactions.inc.php	1754	Property CommonObject::$fk_project (int) does not accept array|string.
This commit is contained in:
thibdrev 2024-01-24 21:53:05 +01:00 committed by GitHub
parent c451526d2a
commit bb942ba009
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1751,7 +1751,7 @@ if (!$error && ($massaction == 'clonetasks' || ($action == 'clonetasks' && $conf
}
if (!$error) {
$clone_task->fk_project = GETPOST('projectid', 'int');
$clone_task->fk_project = GETPOSTINT('projectid');
$clone_task->ref = $defaultref;
$clone_task->label = $origin_task->label;
$clone_task->description = $origin_task->description;