From 0618c7abbe7b5dbc4b4b93a591af8d6f1bb410e1 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sat, 1 Jun 2013 23:29:54 +0100 Subject: [PATCH] Filter params on new stock --- item_schedule.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/item_schedule.php b/item_schedule.php index 4de176c..69a5398 100644 --- a/item_schedule.php +++ b/item_schedule.php @@ -56,7 +56,8 @@ else { if (list_updated('stock_id') || in_ajax()) $Ajax->activate('item_schedule'); //if (!@$_GET['popup']) - start_form(); +// start_form(); + $stock_id = $_POST['stock_id']; @@ -65,8 +66,9 @@ $stock_id = $_POST['stock_id']; end_row(); end_table(1); +if(isset($stock_id)) echo ''; -$params = in_ajax() ? new ScheduleParameters($_POST) : null; +$params = in_ajax() && $stock_id == @$_POST['last_stock_id'] ? new ScheduleParameters($_POST) : null; $scheduler = new ItemScheduler($stock_id, 'DEF', $params); start_table(TABLESTYLE); -- 2.30.2