fix: [bootstrap:table] Fixed typo and pass field config for indexed arrays

develop-unstable
Sami Mokaddem 2023-02-14 10:31:23 +01:00
parent d4ad5f2fb3
commit c0636b89ab
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ use App\View\Helper\BootstrapHelper;
* $this->Bootstrap->table( * $this->Bootstrap->table(
* [ * [
* 'hover' => false, * 'hover' => false,
* 'striped' => 'false', * 'striped' => false,
* ], * ],
* [ * [
* 'items' => [ * 'items' => [
@ -191,7 +191,7 @@ class BootstrapTable extends BootstrapGeneric
} }
} else { // indexed array } else { // indexed array
foreach ($row as $i => $cellValue) { foreach ($row as $i => $cellValue) {
$html .= $this->genCell($cellValue, [], $row, $rowIndex); $html .= $this->genCell($cellValue, $this->fields[$i], $row, $rowIndex);
} }
} }
$html .= $this->nodeClose('tr'); $html .= $this->nodeClose('tr');