From c6907dca87ad3cbb7eeb5dd27616f65f84aef592 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Wed, 3 Jun 2026 06:39:39 +0200 Subject: [PATCH] Remove comments about project linking in card-rec.php Removed comments regarding project linking behavior in the supplier invoice rec card. --- htdocs/fourn/facture/card-rec.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/fourn/facture/card-rec.php b/htdocs/fourn/facture/card-rec.php index 919703ce0c4..d84456c97c3 100644 --- a/htdocs/fourn/facture/card-rec.php +++ b/htdocs/fourn/facture/card-rec.php @@ -1005,9 +1005,6 @@ if ($action == 'create') { $projectid = GETPOST('projectid') ? GETPOST('projectid') : $object->fk_project; $langs->load('projects'); print '' . $langs->trans('Project') . ''; - // Mirror the regular supplier invoice card.php: honour PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS - // (so projects unrelated to this supplier can be picked when the constant is set) and exclude - // closed projects from the dropdown (see issue #31135). $numprojet = $formproject->select_projects((!getDolGlobalString('PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS') ? $object->thirdparty->id : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 0, 0, ''); print '   thirdparty->id . (!empty($id) ? '&id=' . $id : '')) . '">' . $langs->trans("AddProject") . ''; print ''; @@ -1199,9 +1196,6 @@ if ($action == 'create') { $morehtmlref .= '
'; $morehtmlref .= ''; $morehtmlref .= ''; - // Mirror the regular supplier invoice card.php: honour PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS - // and exclude closed projects so the picker behaves like the one in the non-recurring - // supplier invoice form (see issue #31135). $morehtmlref .= $formproject->select_projects((!getDolGlobalString('PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS') ? $object->socid : -1), $object->fk_project, 'projectid', $maxlength, 0, 1, 1, 1, 0, 0, '', 1); $morehtmlref .= ''; $morehtmlref .= '
';