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;