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 <christophe@altairis.fr>
This commit is contained in:
Christophe Battarel 2025-06-04 11:09:43 +02:00 committed by GitHub
parent 59a0c23009
commit e35d93ea76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -2070,7 +2070,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
// Ref/ID
if (getDolGlobalString('MAIN_SHOW_TECHNICAL_ID')) {
print '<tr><td class="titlefieldcreate">'.$langs->trans("ID").'</td><td colspan="3">';
print $object->ref;
print $object->id;
print '</td></tr>';
}

View file

@ -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;