From 0cc2e8a92d7f9b4876518daef3f2f8c0e4d04800 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Nov 2024 12:21:29 +0100 Subject: [PATCH] Close #32000 --- htdocs/core/class/html.formintervention.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.formintervention.class.php b/htdocs/core/class/html.formintervention.class.php index 6fa982dadbc..be136a5db91 100644 --- a/htdocs/core/class/html.formintervention.class.php +++ b/htdocs/core/class/html.formintervention.class.php @@ -71,7 +71,7 @@ class FormIntervention $hideunselectables = false; // Search all contacts - $sql = "SELECT f.rowid, f.ref, f.fk_soc, f.fk_statut"; + $sql = "SELECT f.rowid, f.ref, f.fk_soc, f.fk_statut as status"; $sql .= " FROM ".$this->db->prefix()."fichinter as f"; $sql .= " WHERE f.entity = ".$conf->entity; if ($socid >= 0) { @@ -108,11 +108,11 @@ class FormIntervention // Do nothing } else { $labeltoshow = dol_trunc($obj->ref, 18); - if (!empty($selected) && $selected == $obj->rowid && $obj->statut > 0) { + if (!empty($selected) && $selected == $obj->rowid && $obj->status > 0) { $out .= ''; } else { $disabled = 0; - if (!$obj->fk_statut > 0 && ! $draftonly) { + if (!$obj->status > 0 && ! $draftonly) { $disabled = 1; $labeltoshow .= ' ('.$langs->trans("Draft").')'; }