From 29df21d768d4398edddcf1949cfbf79017724d18 Mon Sep 17 00:00:00 2001 From: Christian Humpel Date: Tue, 16 Aug 2022 22:25:52 +0200 Subject: [PATCH] Fix #21761 Remove dopple +1 on $ranktouse. --- htdocs/bom/bom_card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/bom/bom_card.php b/htdocs/bom/bom_card.php index ee619a589e3..f67c4819efc 100644 --- a/htdocs/bom/bom_card.php +++ b/htdocs/bom/bom_card.php @@ -194,7 +194,7 @@ if (empty($reshook)) { $rangmax = $object->line_max(0); $ranktouse = $rangmax + 1; - $bomline->position = ($ranktouse + 1); + $bomline->position = $ranktouse; $result = $bomline->create($user); if ($result <= 0) {