Feng Office 3.4.4.1: fix for missing custom porperty values

Recently I updated the corporate Feng Office App  to a version 3.4.4.1 and found that some custom properties are not showing in the task view. These custom properties were all of type: List. The values were saving correctly into the db and worked fine in edit view, but as I said, not in the task view.

Solution

This might not be a correct solution for the problem, but it does the job.

So lets open the file

webroot/application/views/custom_properties/view.php

find this piece of code:

} else if ($customProp->getType() == 'list'){
                        if ($customProp->getIsSpecial()) {
                            $lang_value = Localization::instance()->lang($value);
                            $htmlValue = is_null($lang_value) ? $value : $lang_value;
                        }
}

and add edit the line before the last closing curly bracket so it looks like this:

 } else if ($customProp->getType() == 'list'){
          if ($customProp->getIsSpecial()) {
             $lang_value = Localization::instance()->lang($value);
             $htmlValue = is_null($lang_value) ? $value : $lang_value;
          }else{
             $htmlValue = is_null($lang_value) ? $value : $lang_value;
 }

This has solved the problem for me. Hope it does for you as well.