diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index d2b326a6ba4..f3e88404f6d 100644 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -6,7 +6,7 @@ * Copyright (C) 2013 Cédric Salvador * Copyright (C) 2015 Jean-François Ferry * Copyright (C) 2018 Ferran Marcet - * Copyright (C) 2021 Frédéric France + * Copyright (C) 2021-2023 Frédéric France * Copyright (C) 2022 Charlène Benke * * This program is free software; you can redistribute it and/or modify @@ -574,8 +574,12 @@ if (!empty($arrayfields['f.note_private']['checked'])) { // Status if (!empty($arrayfields['f.fk_statut']['checked'])) { print ''; - $tmp = $objectstatic->LibStatut(0); // To load $this->statuts_short - $liststatus = $objectstatic->statuts_short; + $liststatus = [ + $object::STATUS_DRAFT => $langs->transnoentitiesnoconv('Draft'), + $object::STATUS_VALIDATED => $langs->transnoentitiesnoconv('Validated'), + $object::STATUS_BILLED => $langs->transnoentitiesnoconv('StatusInterInvoiced'), + $object::STATUS_CLOSED => $langs->transnoentitiesnoconv('Done'), + ]; if (empty($conf->global->FICHINTER_CLASSIFY_BILLED)) { unset($liststatus[2]); // Option deprecated. In a future, billed must be managed with a dedicated field to 0 or 1 }