Fix checking empty string. (#2887)

This commit is contained in:
Alexander Shursha 2018-11-08 13:46:24 +03:00 committed by Ad Schellevis
parent 01f5e6d146
commit db94fb410a

View File

@ -109,7 +109,7 @@ class UIModelGrid
$row[$fieldname] = '';
foreach ($listItems as $fieldValue) {
if ($fieldValue['selected'] == 1) {
if (!empty($row[$fieldname])) {
if ($row[$fieldname] != "") {
$row[$fieldname] .= ',';
}
$row[$fieldname] .= $fieldValue['value'];