Commit 267da3cc by Alexander Kochetov

\yii\grid\ActionColumn incomplete anonymous functions signature fix.

parent d05a373b
......@@ -97,7 +97,7 @@ class ActionColumn extends Column
protected function initDefaultButtons()
{
if (!isset($this->buttons['view'])) {
$this->buttons['view'] = function ($url, $model) {
$this->buttons['view'] = function ($url, $model, $key) {
return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $url, [
'title' => Yii::t('yii', 'View'),
'data-pjax' => '0',
......@@ -105,7 +105,7 @@ class ActionColumn extends Column
};
}
if (!isset($this->buttons['update'])) {
$this->buttons['update'] = function ($url, $model) {
$this->buttons['update'] = function ($url, $model, $key) {
return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [
'title' => Yii::t('yii', 'Update'),
'data-pjax' => '0',
......@@ -113,7 +113,7 @@ class ActionColumn extends Column
};
}
if (!isset($this->buttons['delete'])) {
$this->buttons['delete'] = function ($url, $model) {
$this->buttons['delete'] = function ($url, $model, $key) {
return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [
'title' => Yii::t('yii', 'Delete'),
'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment