From: Maxime Bourget Date: Sat, 1 Jun 2013 22:29:54 +0000 (+0100) Subject: Filter params on new stock X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0618c7abbe7b5dbc4b4b93a591af8d6f1bb410e1;p=order_line_extra.git Filter params on new stock --- 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);