Merge pull request #21248 from fboitel/fboitel-dev-scrutinizer-006

BUG FIX Attribute socid doesnt exist on class Salary, so we use -1 on form
This commit is contained in:
Laurent Destailleur 2022-06-14 18:45:43 +02:00 committed by GitHub
commit 4eebfc5874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ if ($object->id) {
$morehtmlref .= '<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
$morehtmlref .= '</form>';
} else {
$morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1);
$morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, -1, $object->fk_project, 'none', 0, 0, 0, 1);
}
} else {
if (!empty($object->fk_project)) {