Skip to content

Commit

Permalink
Update SortableGridView.php
Browse files Browse the repository at this point in the history
Won't render model id into each item, in order to cater the composite primary key scenario
  • Loading branch information
richardfan1126 authored Aug 29, 2018
1 parent f3be33a commit e74effb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SortableGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function renderTableRow($model, $key, $index)
$options = $this->rowOptions;
}

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

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

0 comments on commit e74effb

Please sign in to comment.