Skip to content

Commit cb55143

Browse files
authored
Set multiselect checkbox names as array + fix custom name
1 parent 5f3b056 commit cb55143

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Datatable/Column/MultiselectColumn.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,17 @@ public function setAttributes($attributes)
247247
}
248248

249249
if (array_key_exists('name', $attributes)) {
250-
$attributes['name'] = $value.' '.$attributes['name'];
250+
$attributes['name'] = $attributes['name'].'[]';
251251
} else {
252-
$attributes['name'] = $value;
252+
$attributes['name'] = $value.'[]';
253253
}
254254
if (array_key_exists('class', $attributes)) {
255255
$attributes['class'] = $value.' '.$attributes['class'];
256256
} else {
257257
$attributes['class'] = $value;
258258
}
259259
} else {
260-
$attributes['name'] = $value;
260+
$attributes['name'] = $value.'[]';
261261
$attributes['class'] = $value;
262262
}
263263

0 commit comments

Comments
 (0)