From 6ae35684fe7910eb0bb83ab5a3c62738541d95e1 Mon Sep 17 00:00:00 2001
From: OpenXE <>
Date: Mon, 2 Dec 2024 19:12:56 +0100
Subject: [PATCH] bugfix verbindlichkeit positionen_hinzufuegen
---
www/pages/verbindlichkeit.php | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/www/pages/verbindlichkeit.php b/www/pages/verbindlichkeit.php
index dd22f79a..0ad4f3b0 100644
--- a/www/pages/verbindlichkeit.php
+++ b/www/pages/verbindlichkeit.php
@@ -235,9 +235,12 @@ class Verbindlichkeit {
))+0";
$auswahl = array (
- ' 'pd.id'],
- '"/>'
+ '"/>',
+ ' 'pd.id'],
+ '" hidden/>'
);
$werte = array (
@@ -715,18 +718,27 @@ class Verbindlichkeit {
// Process multi action
$ids = $this->app->Secure->GetPOST('ids');
+ $auswahl = $this->app->Secure->GetPOST('auswahl');
$werte = $this->app->Secure->GetPOST('werte');
$preise = $this->app->Secure->GetPOST('preise');
$bruttoeingabe = $this->app->Secure->GetPOST('bruttoeingabe');
- foreach ($ids as $key => $paketdistribution) {
+ foreach ($auswahl as $key => $paketdistribution) {
+ $key = -1;
+ foreach ($ids as $index => $value) {
+ if ($value == $paketdistribution) {
+ $key = $index;
+ break;
+ }
+ }
+ if ($key == -1) {
+ continue;
+ }
$menge = $werte[$key];
-
if ($menge <= 0) {
continue;
}
-
// Check available number
$sql = "
SELECT