Fix: backward compatibility
This commit is contained in:
parent
1c2f192dd6
commit
a344f079d6
@ -2429,6 +2429,8 @@ abstract class CommonObject
|
|||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
global $form,$bc,$bcdd;
|
global $form,$bc,$bcdd;
|
||||||
|
|
||||||
|
$element=$this->element;
|
||||||
|
|
||||||
// Show product and description
|
// Show product and description
|
||||||
$type=$line->product_type?$line->product_type:$line->fk_product_type;
|
$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
|
// Try to enhance type detection using date_start and date_end for free lines where type
|
||||||
|
|||||||
@ -593,6 +593,12 @@ class User extends CommonObject
|
|||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For backward compatibility
|
||||||
|
if (isset($this->rights->propale))
|
||||||
|
{
|
||||||
|
$this->rights->propal = $this->rights->propale;
|
||||||
|
}
|
||||||
|
|
||||||
if (! $moduletag)
|
if (! $moduletag)
|
||||||
{
|
{
|
||||||
// Si module etait non defini, alors on a tout charge, on peut donc considerer
|
// Si module etait non defini, alors on a tout charge, on peut donc considerer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user