Skip to content

Commit

Permalink
Fix and issue introduced in PR #552 (#553)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
  • Loading branch information
3 people authored Jan 6, 2025
1 parent 3e270e1 commit 79aceaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators/crud/default/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public function scenarios()
* Creates data provider instance with search query applied
*
* @param array $params
* @param string $formName Form name to be used into `->load()` method. By default it is equal to the class name.
* @param string|null $formName Form name to be used into `->load()` method.
*
* @return ActiveDataProvider
*/
public function search($params, $formName = '<?= $searchModelClass ?>')
public function search($params, $formName = null)
{
$query = <?= isset($modelAlias) ? $modelAlias : $modelClass ?>::find();

Expand Down

0 comments on commit 79aceaf

Please sign in to comment.