Skip to content

Commit e74effb

Browse files
Update SortableGridView.php
Won't render model id into each item, in order to cater the composite primary key scenario
1 parent f3be33a commit e74effb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SortableGridView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function renderTableRow($model, $key, $index)
6565
$options = $this->rowOptions;
6666
}
6767

68-
$options['id'] = "items[]_{$model->primaryKey}";
68+
// $options['id'] = "items[]_{$model->primaryKey}";
6969
$options['data-key'] = is_array($key) ? json_encode($key) : (string) $key;
7070

7171
return Html::tag('tr', implode('', $cells), $options);

0 commit comments

Comments
 (0)