Fix: backward compatibility
This commit is contained in:
parent
1c2f192dd6
commit
a344f079d6
@ -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
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user