File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/yajra/Datatables/Html Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
##Change Log
10
10
11
+ ###v5.9.2
12
+ - Fix possible error when rendering table and overriding the attributes.
13
+ - Merge DT parameters.
14
+
11
15
###v5.9.1
12
16
- Fix default ajax value causing js data null error.
13
17
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ public function ajax($attributes)
275
275
*/
276
276
public function table (array $ attributes = [])
277
277
{
278
- $ this ->tableAttributes = $ attributes ?: $ this ->tableAttributes ;
278
+ $ this ->tableAttributes = array_merge ( $ this ->tableAttributes , $ attributes ) ;
279
279
280
280
return '<table ' . $ this ->html ->attributes ($ this ->tableAttributes ) . '></table> ' ;
281
281
}
@@ -288,7 +288,7 @@ public function table(array $attributes = [])
288
288
*/
289
289
public function parameters (array $ attributes = [])
290
290
{
291
- $ this ->attributes = $ attributes ;
291
+ $ this ->attributes = array_merge ( $ this -> attributes , $ attributes ) ;
292
292
293
293
return $ this ;
294
294
}
You can’t perform that action at this time.
0 commit comments