Skip to content

Commit

Permalink
Fix line_max for BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 3, 2020
1 parent e5808e3 commit d8ed62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/commonobject.class.php
Expand Up @@ -2745,7 +2745,7 @@ public function line_max($fk_parent_line = 0)
{
// phpcs:enable
$positionfield = 'rang';
if ($this->table_element = 'bom') $positionfield = 'position';
if ($this->table_element == 'bom') $positionfield = 'position';

// Search the last rang with fk_parent_line
if ($fk_parent_line)
Expand Down

0 comments on commit d8ed62e

Please sign in to comment.