Commit 8445ca506830ad9bf52977c37118246a41efe2ed
1 parent
b8ebc8c6
fix 2
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
frontend/controllers/SiteController.php
@@ -72,7 +72,7 @@ | @@ -72,7 +72,7 @@ | ||
72 | */ | 72 | */ |
73 | public function actionContact() | 73 | public function actionContact() |
74 | { | 74 | { |
75 | - $contact = new F(['scenario' => F::SCENARIO_DEFAULT]); | 75 | + $contact = new F(); |
76 | return $this->render( | 76 | return $this->render( |
77 | 'contact', | 77 | 'contact', |
78 | [ | 78 | [ |
frontend/models/Feedback.php
@@ -34,7 +34,7 @@ class Feedback extends ArtboxCoreFeedback | @@ -34,7 +34,7 @@ class Feedback extends ArtboxCoreFeedback | ||
34 | 'when' => function ($model) { | 34 | 'when' => function ($model) { |
35 | return !$model->hasErrors(); | 35 | return !$model->hasErrors(); |
36 | }, | 36 | }, |
37 | - 'on' => self::SCENARIO_DEFAULT, | 37 | + |
38 | 38 | ||
39 | ], | 39 | ], |
40 | [ | 40 | [ |