yiisoft/yii — pull request #3529 by dlnsk (2014-09-08 11:11:09+00:00)
Title: yiigridview.getChecked should return array of checkbox's values instead of keys

It allow to change 'name' parameter of CCheckBoxColumn.

I use MANY-MANY (Child-ChildSchool-School) relation, so I select records from ChildSchool but display related Childs like this:

'columns' => array(
array(
'class' => 'CCheckBoxColumn',
'id' => 'child-boxes',
'name' => 'child.id',
'selectableRows' => 2,
),
array(
'name' => 'child.lastname',
'value' => 'CHtml::link(CHtml::encode($data->child->lastname),
array("view","id" => $data->child->id))',
'type' => 'raw',
'filter' => CHtml::activeTextField($model, 'lastname'),
),
etc

In this case even if I use 'name' in CCheckBoxColumn yiigridview.getChecked returns keys of ChildSchool instead of 'child.id'.