Possible Resolve?
I think I found the problem. The function "return_specified_module_language" loads the global variable "$mod_strings". The translation tool in coreBOS (I think this is the issue) adds empty keys to that array. So really, the system isn't doing anything wrong. It loads the current language file for the module in use and fills the $mod_strings array. The array keys are just empty, and currently, there's no way of fixing that in-system. I would therefor propose the following fix:
Change line https://github.com/tsolucio/corebos/blob/master/modules/CustomView/EditView.php#L189 to:
to make sure the array doesn't get filled with empty values.
This does not fix the issue in reports though Any ideas for a more sustainable solution or how we can apply the same fix in reports?
I think I found the problem. The function "return_specified_module_language" loads the global variable "$mod_strings". The translation tool in coreBOS (I think this is the issue) adds empty keys to that array. So really, the system isn't doing anything wrong. It loads the current language file for the module in use and fills the $mod_strings array. The array keys are just empty, and currently, there's no way of fixing that in-system. I would therefor propose the following fix:
Change line https://github.com/tsolucio/corebos/blob/master/modules/CustomView/EditView.php#L189 to:
Code:
if(isset($mod_strings[$fieldlabel]) && $mod_strings[$fieldlabel] != "")
This does not fix the issue in reports though Any ideas for a more sustainable solution or how we can apply the same fix in reports?