From 112028aa7ecf198729980c077c73bc3947381e8f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Nov 2025 18:24:15 +0100 Subject: [PATCH] FIX #35096 #36393 Add minimal fields required asthe class is used by custom reports --- htdocs/core/class/cleadstatus.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/class/cleadstatus.class.php b/htdocs/core/class/cleadstatus.class.php index f72f9dddc7d..139d412235c 100644 --- a/htdocs/core/class/cleadstatus.class.php +++ b/htdocs/core/class/cleadstatus.class.php @@ -69,6 +69,12 @@ class CLeadStatus extends CommonDict } + public $fields = array( + 'rowid' => array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'position' => 1, 'notnull' => 1, 'visible' => 0, 'noteditable' => 1, 'index' => 1, 'css' => 'left', 'comment' => "Id"), + 'label' => array('type' => 'varchar(128)', 'label' => 'Label', 'enabled' => 1, 'position' => 20, 'notnull' => 1, 'visible' => 1, 'index' => 1, 'searchall' => 1, 'showoncombobox' => 1, 'comment' => "Label of status"), + ); + + /** * Create object into database *