Commit 2aa39499 by Alexander Makarov

Fixes #3665: Improved Gii CRUD generated code to support setting initial…

Fixes #3665: Improved Gii CRUD generated code to support setting initial conditions via initializing search model
parent bf206efc
......@@ -5,6 +5,7 @@ Yii Framework 2 gii extension Change Log
-----------------------
- Bug #6463: The Gii controller generator generates incorrect controller namespace (pana1990)
- Enh #3665: Improved Gii CRUD generated code to support setting initial conditions via initializing search model (mdmunir, fsateler, samdark)
2.0.1 December 07, 2014
......
......@@ -69,7 +69,7 @@ class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $m
'query' => $query,
]);
if (!($this->load($params) && $this->validate())) {
if ($this->load($params) && !$this->validate()) {
return $dataProvider;
}
......
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