Fix mark a deprecated function as deprecated

This commit is contained in:
Laurent Destailleur 2016-05-04 13:15:00 +02:00
parent 3d9456b202
commit 7998cefdd2

View File

@ -2950,7 +2950,7 @@ class Product extends CommonObject
* Return all direct parent products fo current product * Return all direct parent products fo current product
* *
* @return array prod * @return array prod
* @see getFather * @deprecated See getFather
*/ */
function getParent() function getParent()
{ {
@ -3036,7 +3036,9 @@ class Product extends CommonObject
*/ */
function get_sousproduits_arbo() function get_sousproduits_arbo()
{ {
$parent = $this->getParent(); //$parent = $this->getParent();
$parent[$this->label]=array(0 => $this->id);
foreach($parent as $key => $value) // key=label, value[0]=id foreach($parent as $key => $value) // key=label, value[0]=id
{ {
foreach($this->getChildsArbo($value[0]) as $keyChild => $valueChild) foreach($this->getChildsArbo($value[0]) as $keyChild => $valueChild)