|
|
@@ -518,7 +518,7 @@ class Route_ViewTableAjax extends RouteBase {
|
|
|
foreach ($items as $item) :
|
|
|
UI::startTag('tr');
|
|
|
foreach ($labels as $fldName => $label) :
|
|
|
- UI::tag('td', [], $item->{$fldName});
|
|
|
+ UI::tag('td', [], V::get($fldName, '', $item));
|
|
|
endforeach;
|
|
|
UI::endTag('tr');
|
|
|
endforeach;
|
|
|
@@ -541,7 +541,7 @@ class Route_ViewTableAjax extends RouteBase {
|
|
|
foreach ($items as $item) {
|
|
|
$itemLine = array();
|
|
|
foreach ($labels as $fldName => $label) {
|
|
|
- $itemLine[] = '"' . addslashes($item->{$fldName}) . '"';
|
|
|
+ $itemLine[] = '"' . addslashes(V::get($fldName, '', $item)) . '"';
|
|
|
}
|
|
|
echo implode($csvSeparator, $itemLine) . "\n";
|
|
|
}
|