Merge branch 'FIX/check_if_allowed_to_add_bom_as_bomline' of github.com:atm-gauthier/dolibarr into FIX/check_if_allowed_to_add_bom_as_bomline
This commit is contained in:
commit
4c15dafa14
@ -1156,7 +1156,7 @@ class BOM extends CommonObject
|
|||||||
* @param int $level Protection against infinite loop
|
* @param int $level Protection against infinite loop
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function getParentBomTreeRecursive(&$TParentBom, $bom_id='', $level=1)
|
public function getParentBomTreeRecursive(&$TParentBom, $bom_id = '', $level = 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Protection against infinite loop
|
// Protection against infinite loop
|
||||||
@ -1164,7 +1164,7 @@ class BOM extends CommonObject
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($bom_id)) $bom_id=$this->id;
|
if (empty($bom_id)) $bom_id=$this->id;
|
||||||
|
|
||||||
$sql = 'SELECT l.fk_bom, b.label
|
$sql = 'SELECT l.fk_bom, b.label
|
||||||
FROM '.MAIN_DB_PREFIX.'bom_bomline l
|
FROM '.MAIN_DB_PREFIX.'bom_bomline l
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user