diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 8e5cb7bbc98..cfae5385e30 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2429,6 +2429,8 @@ abstract class CommonObject global $conf,$langs,$user; global $form,$bc,$bcdd; + $element=$this->element; + // Show product and description $type=$line->product_type?$line->product_type:$line->fk_product_type; // Try to enhance type detection using date_start and date_end for free lines where type diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index a684cfe5ca1..bc367203775 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -592,6 +592,12 @@ class User extends CommonObject } $this->db->free($resql); } + + // For backward compatibility + if (isset($this->rights->propale)) + { + $this->rights->propal = $this->rights->propale; + } if (! $moduletag) {