Bestellvorschlag allow manual 0 values to remove entry

This commit is contained in:
OpenXE 2024-05-30 15:20:07 +02:00
parent dd2387a700
commit c36f685d39

View File

@ -314,7 +314,7 @@ FROM
foreach ($menge_input as $key => $menge) {
if ((strpos($key,'menge_') === 0) && ($menge !== '')) {
$artikel = substr($key,'6');
if ($menge > 0) {
if ($menge >= 0) {
$sql = "INSERT INTO bestellvorschlag (artikel, user, menge) VALUES($artikel,$user,$menge) ON DUPLICATE KEY UPDATE menge = $menge";
$this->app->DB->Insert($sql);
}