From a344f079d638637051812c143a13e08199717e32 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 6 Apr 2012 12:14:16 +0200 Subject: [PATCH] Fix: backward compatibility --- htdocs/core/class/commonobject.class.php | 2 ++ htdocs/user/class/user.class.php | 6 ++++++ 2 files changed, 8 insertions(+) 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) {