Commit ac700720 by Serge Postrash

Update index.php

parent 1e06f3b9
...@@ -41,7 +41,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module- ...@@ -41,7 +41,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
} }
} }
$codes = array_unique($codes, SORT_NUMERIC); $codes = array_unique($codes, SORT_NUMERIC);
$status_codes = (!empty($codes)) ? array_combine($codes, $codes) : true; $statusCodes = (!empty($codes)) ? array_combine($codes, $codes) : true;
echo GridView::widget([ echo GridView::widget([
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
...@@ -113,7 +113,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module- ...@@ -113,7 +113,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
], ],
[ [
'attribute' => 'statusCode', 'attribute' => 'statusCode',
'filter' => $status_codes, 'filter' => $statusCodes,
'label' => 'Status code' 'label' => 'Status code'
], ],
], ],
......
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