Commit 74b0ed00 authored by Ad Schellevis's avatar Ad Schellevis

(UIModelGrid) return all selected items for list types

parent 7f91fe62
......@@ -105,12 +105,17 @@ class UIModelGrid
if ($record->$fieldname != null) {
$row[$fieldname] = $record->$fieldname->getNodeData();
if (is_array($row[$fieldname])) {
foreach ($row[$fieldname] as $fieldKey => $fieldValue) {
$listItems = $row[$fieldname];
$row[$fieldname] = '';
foreach ($listItems as $fieldValue) {
if ($fieldValue['selected'] == 1) {
$row[$fieldname] = $fieldValue['value'];
if (!empty($row[$fieldname])) {
$row[$fieldname] .= ',';
}
$row[$fieldname] .= $fieldValue['value'];
}
}
if (is_array($row[$fieldname])) {
if (empty($row[$fieldname])) {
$row[$fieldname] = "##Unlinked";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment