From c0636b89ab8388d831315714a468db86b15265ef Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 14 Feb 2023 10:31:23 +0100 Subject: [PATCH] fix: [bootstrap:table] Fixed typo and pass field config for indexed arrays --- src/View/Helper/BootstrapElements/BootstrapTable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Helper/BootstrapElements/BootstrapTable.php b/src/View/Helper/BootstrapElements/BootstrapTable.php index 2b9a8f3..d34951d 100644 --- a/src/View/Helper/BootstrapElements/BootstrapTable.php +++ b/src/View/Helper/BootstrapElements/BootstrapTable.php @@ -38,7 +38,7 @@ use App\View\Helper\BootstrapHelper; * $this->Bootstrap->table( * [ * 'hover' => false, - * 'striped' => 'false', + * 'striped' => false, * ], * [ * 'items' => [ @@ -191,7 +191,7 @@ class BootstrapTable extends BootstrapGeneric } } else { // indexed array foreach ($row as $i => $cellValue) { - $html .= $this->genCell($cellValue, [], $row, $rowIndex); + $html .= $this->genCell($cellValue, $this->fields[$i], $row, $rowIndex); } } $html .= $this->nodeClose('tr');