Skip to content

Commit 6b53010

Browse files
committed
Merge branch 'hotfix/v5.8.4'
2 parents 65755d7 + be4d031 commit 6b53010

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

change-log.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
##Change Log
1010

11+
###v5.8.4
12+
- Fix html builder merging of column attributes.
13+
1114
###v5.8.3
1215
- Added space when setting html builder table attributes.
1316
- Set a default data value when adding a column.

src/yajra/Datatables/Html/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function columns(array $columns)
165165
{
166166
foreach ($columns as $key => $value) {
167167
if (is_array($value)) {
168-
$attributes = ['name' => $key, 'data' => $key] + $this->setTitle($key, $value);
168+
$attributes = array_merge(['name' => $key, 'data' => $key], $this->setTitle($key, $value));
169169
} else {
170170
$attributes = [
171171
'name' => $value,

0 commit comments

Comments
 (0)