Cleanup in db_pager get_sql and testing it.
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index 5f58bd9fd0ad7a24dd73a6af6c8d67dcd9ab196f..d89d5d3590a8b8c10a9d063d286f0f8d00ce25a9 100644 (file)
@@ -167,7 +167,7 @@ function edit_link($row)
 }
 //------------------------------------------------------------------------------------------------
 
-$sql = get_sql_for_supplier_inquiry($_POST['filterType'], $_POST['TransAfterDate'], $_POST['TransToDate'], $_POST['supplier_id']);
+$sql = get_sql_for_supplier_inquiry(get_post('filterType'), get_post('TransAfterDate'), get_post('TransToDate'), get_post('supplier_id'));
 
 $cols = array(
                        _("Type") => array('fun'=>'systype_name', 'ord'=>''),