Commit 0e7652b6 by Alexander Makarov

Merge pull request #6584 from creocoder/yii-grid-action-column-incomplete-signature-fixes

\yii\grid\ActionColumn incomplete anonymous functions signature fix
parents 6c80cba3 267da3cc
......@@ -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