|
@@ -85,7 +85,7 @@ |
|
|
block discarded – undo |
|
85
|
85
|
|
|
86
|
86
|
[ |
|
87
|
87
|
'class' => 'yii\grid\ActionColumn', |
|
88
|
|
- 'urlCreator' => function ($action, $model, $key, $index) { |
|
|
88
|
+ 'urlCreator' => function($action, $model, $key, $index) { |
|
89
|
89
|
// using the column name as key, not mapping to 'id' like the standard generator |
|
90
|
90
|
$params = is_array($key) ? $key : [$model->primaryKey()[0] => (string)$key]; |
|
91
|
91
|
$params[0] = \Yii::$app->controller->id ? \Yii::$app->controller->id.'/'.$action : $action; |
Please login to merge, or discard this patch.