Commit 4f584dd2 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) check for uuid before using it.

parent 94d946c7
...@@ -70,6 +70,7 @@ class UIModelGrid ...@@ -70,6 +70,7 @@ class UIModelGrid
$recordIndex = 0; $recordIndex = 0;
foreach ($this->DataField->sortedBy($sortBy, $sortDescending) as $record) { foreach ($this->DataField->sortedBy($sortBy, $sortDescending) as $record) {
if (array_key_exists("uuid", $record->getAttributes())) {
// parse rows, because we may need to convert some (list) items we need to know the actual content // parse rows, because we may need to convert some (list) items we need to know the actual content
// before searching. // before searching.
$row = array(); $row = array();
...@@ -112,6 +113,7 @@ class UIModelGrid ...@@ -112,6 +113,7 @@ class UIModelGrid
$recordIndex++; $recordIndex++;
} }
} }
}
$result['rowCount'] = count($result['rows']); $result['rowCount'] = count($result['rows']);
$result['total'] = $recordIndex; $result['total'] = $recordIndex;
......
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