Cleanup in db_pager get_sql and testing it.
[fa-stable.git] / dimensions / inquiry / search_dimensions.php
index 95ff4aebe65f3688c73063452a811a314394b29d..ea1781a10d305153ecefc444e5ae1679dfc04a22 100644 (file)
@@ -122,7 +122,7 @@ function edit_link($row)
 }
 
 $sql = get_sql_for_search_dimensions($dim, $_POST['FromDate'], $_POST['ToDate'],
-       $_POST['OrderNumber'], $_POST['type_'], $_POST['OpenOnly'], $_POST['OverdueOnly']);
+       $_POST['OrderNumber'], $_POST['type_'], check_value('OpenOnly'), check_value('OverdueOnly'));
 
 $cols = array(
        _("#") => array('fun'=>'view_link'),