From 7dad374affcd6a8b3dca595f59c57060f4b4261a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 22 Feb 2023 09:32:12 +0100 Subject: [PATCH] fix emty status select list --- htdocs/fichinter/list.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 }