Skip to content

Commit c2a60aa

Browse files
committed
Update DataTable.php
1 parent 3c4d036 commit c2a60aa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Ajax/semantic/widgets/datatable/DataTable.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Ajax\service\JArray;
1616
use Ajax\service\JString;
1717
use Ajax\semantic\html\base\HtmlSemDoubleElement;
18-
use Ubiquity\utils\base\UArray;
1918

2019
/**
2120
* DataTable widget for displaying list of objects
@@ -201,7 +200,7 @@ protected function _hideColumns() {
201200
protected function _generateHeader(HtmlTable $table, $captions) {
202201
$gbFields = $this->_instanceViewer->getGroupByFields();
203202
if (\is_array($gbFields)) {
204-
$captions = \array_values(UArray::removeByKeys($captions, $gbFields));
203+
$captions = \array_values(JArray::removeByKeys($captions, $gbFields));
205204
}
206205
$table->setHeaderValues($captions);
207206
if (isset($this->_sortable)) {
@@ -222,8 +221,8 @@ protected function _generateContent($table) {
222221
return $this->_generateRow($instance, $fields, $table);
223222
});
224223
} else {
225-
$diffFields = array_values(UArray::removeByKeys($fields, $groupByFields));
226-
$activeValues = array_combine($groupByFields, \array_fill(0, \count($groupByFields), null));
224+
$diffFields = \array_values(JArray::removeByKeys($fields, $groupByFields));
225+
$activeValues = \array_combine($groupByFields, \array_fill(0, \count($groupByFields), null));
227226
$uuids = [];
228227
$table->fromDatabaseObjects($objects, function ($instance) use ($table, $fields, &$activeValues, $groupByFields, &$uuids, $diffFields) {
229228
$this->_instanceViewer->setInstance($instance);

0 commit comments

Comments
 (0)