Skip to content
Snippets Groups Projects
Commit 42a3df07 authored by Uma's avatar Uma
Browse files

Fixes #1232 Displayes report is empty as picklist values failed to retrieve

parent b258e7eb
No related branches found
No related tags found
1 merge request!533Fixes #1232 Displayed report is empty as picklist values failed to retrieve
......@@ -118,7 +118,7 @@ function getAllPickListValues($fieldName,$lang = Array() ){
$arr = array();
for($i=0;$i<$count;$i++){
$pick_val = decode_html($adb->query_result($result, $i, $fieldName));
if($lang[$pick_val] != ''){
if(is_array($lang) && $lang[$pick_val] != ''){
$arr[$pick_val] = $lang[$pick_val];
}
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment