fix: [bootstrap:table] Fixed typo and pass field config for indexed arrays
parent
d4ad5f2fb3
commit
c0636b89ab
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue