mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Bestellvorschlag allow manual 0 values to remove entry
This commit is contained in:
parent
dd2387a700
commit
c36f685d39
@ -314,7 +314,7 @@ FROM
|
|||||||
foreach ($menge_input as $key => $menge) {
|
foreach ($menge_input as $key => $menge) {
|
||||||
if ((strpos($key,'menge_') === 0) && ($menge !== '')) {
|
if ((strpos($key,'menge_') === 0) && ($menge !== '')) {
|
||||||
$artikel = substr($key,'6');
|
$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";
|
$sql = "INSERT INTO bestellvorschlag (artikel, user, menge) VALUES($artikel,$user,$menge) ON DUPLICATE KEY UPDATE menge = $menge";
|
||||||
$this->app->DB->Insert($sql);
|
$this->app->DB->Insert($sql);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user