Fix: backward compatibility

This commit is contained in:
Regis Houssin 2012-04-06 12:14:16 +02:00
parent 1c2f192dd6
commit a344f079d6
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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)
{