From e6ad7f925ced5727b723ad717811b9f2ea056330 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 17 Jan 2011 08:56:47 +0000 Subject: [PATCH] --- wawi/bestellung.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wawi/bestellung.php b/wawi/bestellung.php index 03ae97f45..e5861bad7 100644 --- a/wawi/bestellung.php +++ b/wawi/bestellung.php @@ -1181,6 +1181,7 @@ if($aktion == 'suche') $.post("bestellung.php", {id: bestelldetail_id, deleteDetail: "true"}, function(data){ }); + } @@ -1375,6 +1376,11 @@ if($aktion == 'suche') // letzte leere zeile nicht speichern for($i = 1; $i < $bestellung_detail_anz; $i++) { + // wenn ein Detail gelöscht wird Durchlauf überspringen + if(!isset($_POST["bestelldetailid_$i"])) + { + continue; + } $detail_id = $_POST["bestelldetailid_$i"]; $bestell_detail = new wawi_bestelldetail();