From e35d93ea7613d9916fc432fcaf2bfac9552d83c0 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Wed, 4 Jun 2025 11:09:43 +0200 Subject: [PATCH] FIX : bad value for company ref crashes canvas feature (#34331) * FIX : bad value fo company ref crashes canvas feature * fix technical id for company --------- Co-authored-by: Christophe Battarel --- htdocs/societe/card.php | 2 +- htdocs/societe/class/societe.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 9a73846b30d..59c9a604ff1 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -2070,7 +2070,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio // Ref/ID if (getDolGlobalString('MAIN_SHOW_TECHNICAL_ID')) { print ''.$langs->trans("ID").''; - print $object->ref; + print $object->id; print ''; } diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 1f6e6377ca0..14ddcd19613 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1934,7 +1934,7 @@ class Societe extends CommonObject $this->entity = $obj->entity; $this->canvas = $obj->canvas; - $this->ref = $obj->rowid; + $this->ref = $obj->name; $this->name = $obj->name; $this->nom = $obj->name; // deprecated $this->name_alias = $obj->name_alias;