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 88
99##Change Log
1010
11+ ###v5.9.2
12+ - Fix possible error when rendering table and overriding the attributes.
13+ - Merge DT parameters.
14+
1115###v5.9.1
1216 - Fix default ajax value causing js data null error.
1317
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ public function ajax($attributes)
275275 */
276276 public function table (array $ attributes = [])
277277 {
278- $ this ->tableAttributes = $ attributes ?: $ this ->tableAttributes ;
278+ $ this ->tableAttributes = array_merge ( $ this ->tableAttributes , $ attributes ) ;
279279
280280 return '<table ' . $ this ->html ->attributes ($ this ->tableAttributes ) . '></table> ' ;
281281 }
@@ -288,7 +288,7 @@ public function table(array $attributes = [])
288288 */
289289 public function parameters (array $ attributes = [])
290290 {
291- $ this ->attributes = $ attributes ;
291+ $ this ->attributes = array_merge ( $ this -> attributes , $ attributes ) ;
292292
293293 return $ this ;
294294 }
You can’t perform that action at this time.
0 commit comments