diff --git a/docker/config/php.ini b/docker/config/php.ini index bae95b023..9a613824e 100644 --- a/docker/config/php.ini +++ b/docker/config/php.ini @@ -395,6 +395,9 @@ max_input_time = 60 ; How many GET/POST/COOKIE input variables may be accepted ; max_input_vars = 1000 +; BLIS modification! +max_input_vars = 100000 + ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit ; memory_limit = 128M diff --git a/htdocs/ajax/specimen_type_update.php b/htdocs/ajax/specimen_type_update.php index d9ffdc3a0..1b025d3dd 100755 --- a/htdocs/ajax/specimen_type_update.php +++ b/htdocs/ajax/specimen_type_update.php @@ -7,6 +7,8 @@ include("../includes/db_lib.php"); include("../lang/lang_xml2php.php"); +$lab_config_id = $_SESSION['lab_config_id']; + $updated_entry = new SpecimenType(); $updated_entry->specimenTypeId = $_REQUEST['sid']; $updated_entry->name = $_REQUEST['name']; diff --git a/htdocs/ajax/test_type_update.php b/htdocs/ajax/test_type_update.php index 1ae767373..162eeee2d 100755 --- a/htdocs/ajax/test_type_update.php +++ b/htdocs/ajax/test_type_update.php @@ -7,10 +7,7 @@ include("../includes/db_lib.php"); include("../lang/lang_xml2php.php"); -//NC3065 -//$user = get_user_by_id($_SESSION['user_id']); -//$lab_config_id = $_REQUEST['id']; -//-NC3065 +$lab_config_id = $_SESSION['lab_config_id']; putUILog('test_type_update', 'X', basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X'); @@ -392,7 +389,7 @@ { # Numeric range # Clear existing ref ranges - ReferenceRange::deleteByMeasureId($measure_id, $_SESSION['lab_config_id']); + ReferenceRange::deleteByMeasureId($measure_id, $lab_config_id); # Check if new reference values and age ranges have been entered properly $ranges_lower = $_REQUEST['range_l_'.($i+1)]; $ranges_upper = $_REQUEST['range_u_'.($i+1)]; @@ -810,7 +807,7 @@ $ref_range->sex = $gender_option; $ref_range->rangeLower = $range_lower; $ref_range->rangeUpper = $range_upper; - $ref_range->addToDb($_SESSION['lab_config_id']); + $ref_range->addToDb($lab_config_id); } $measure_count++; } @@ -839,7 +836,7 @@ $ref_range->sex = $gender_option; $ref_range->rangeLower = $range_lower; $ref_range->rangeUpper = $range_upper; - $ref_range->addToDb($_SESSION['lab_config_id']); + $ref_range->addToDb($lab_config_id); } $measure_count++; } diff --git a/htdocs/catalog/test_type_edit.php b/htdocs/catalog/test_type_edit.php index 2fa5a8d52..e5a756f16 100755 --- a/htdocs/catalog/test_type_edit.php +++ b/htdocs/catalog/test_type_edit.php @@ -90,8 +90,9 @@ function specimen_list_to_json($specimen_list) else { array_push($comb_measure_list, $measure); - foreach($submeasure_list_objs as $submeasure) - array_push($comb_measure_list, $submeasure); + foreach($submeasure_list_objs as $submeasure) { + array_push($comb_measure_list, $submeasure); + } } } @@ -99,8 +100,7 @@ function specimen_list_to_json($specimen_list) //echo "
";
                 //print_r($comb_measure_list);
                 //echo "
"; - foreach($comb_measure_list as $measure) - { + foreach($comb_measure_list as $measure) { array_push($measure_list_ids, $measure->measureId); } /* @@ -1207,14 +1207,9 @@ function isInputCurrency(evt) { $us = '_'; for($y = 1; $y <= $max_num_submeasures; $y += 1) { - echo ""; - + echo ""; echo ""; - // echo ""; - echo ""; - + echo ""; echo ""; ?> Sub: @@ -1279,11 +1274,8 @@ function isInputCurrency(evt) { echo ""; echo ""; ?> - - - - + diff --git a/htdocs/includes/db_lib.php b/htdocs/includes/db_lib.php index fd0a48259..389eaceb6 100644 --- a/htdocs/includes/db_lib.php +++ b/htdocs/includes/db_lib.php @@ -13468,8 +13468,9 @@ function insert_lab_config_settings_billing($enabled, $currency_name, $currency_ $query_string = "SELECT count(*) as val from lab_config_settings WHERE id = $id"; $recordset = query_associative_one($query_string); - if($recordset[val] != 0) + if(isset($recordset['val']) && $recordset['val'] != 0) { return 0; + } $remarks = "Billing Settings"; diff --git a/htdocs/includes/db_util.php b/htdocs/includes/db_util.php index 2f8ed2910..8f68038f2 100644 --- a/htdocs/includes/db_util.php +++ b/htdocs/includes/db_util.php @@ -70,7 +70,6 @@ public static function switchToLabConfigRevamp($lab_config_id=null) $lab_config = get_lab_config_by_id($lab_config_id); if ($lab_config == null) { # Error: Lab configuration correspinding to $lab_config_id not found in DB - $log->error("Lab configuration corresponding to '$lab_config_id' not found in database"); return; } $db_name = $lab_config->dbName;