Merge pull request #15141 from atm-maxime/fix_bom_rang

Fix BOM position field
This commit is contained in:
Laurent Destailleur 2020-10-25 13:54:45 +01:00 committed by GitHub
commit b02c734c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2836,7 +2836,7 @@ abstract class CommonObject
{
// phpcs:enable
$positionfield = 'rang';
if ($this->table_element == 'bom') $positionfield = 'position';
if ($this->table_element == 'bom_bom') $positionfield = 'position';
// Search the last rang with fk_parent_line
if ($fk_parent_line)