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:
parent
59a0c23009
commit
e35d93ea76
2 changed files with 2 additions and 2 deletions
|
|
@ -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>';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue