Commit 28143a3c14700ca3e54a7dce1c542d4599fbc2da
1 parent
2168b56b
test
Showing
2 changed files
with
0 additions
and
15 deletions
Show diff stats
frontend/controllers/AccountsController.php
... | ... | @@ -1018,11 +1018,6 @@ |
1018 | 1018 | if(!empty( $post )) { |
1019 | 1019 | $vacancy->load($post); |
1020 | 1020 | $vacancy->validate(); |
1021 | - if(empty( $vacancy->specializationInput )) { | |
1022 | - $vacancy->addError('specializationInput', 'Cannot be blank'); | |
1023 | - } else { | |
1024 | - $vacancy->clearErrors('specializationInput'); | |
1025 | - } | |
1026 | 1021 | if(!$vacancy->hasErrors()) { |
1027 | 1022 | $vacancy->save(); |
1028 | 1023 | Fields::saveFieldData(Yii::$app->request->post('Fields'), $vacancy->vacancy_id, Vacancy::className(), 'ru'); |
... | ... | @@ -1081,11 +1076,6 @@ |
1081 | 1076 | if(!empty( $post )) { |
1082 | 1077 | $vacancy->load($post); |
1083 | 1078 | $vacancy->validate(); |
1084 | - if(empty( $vacancy->specializationInput )) { | |
1085 | - $vacancy->addError('specializationInput', 'Cannot be blank'); | |
1086 | - } else { | |
1087 | - $vacancy->clearErrors('specializationInput'); | |
1088 | - } | |
1089 | 1079 | if(!$vacancy->hasErrors()) { |
1090 | 1080 | $vacancy->save(); |
1091 | 1081 | Fields::saveFieldData(Yii::$app->request->post('Fields'), $vacancy->vacancy_id, Vacancy::className(), 'ru'); | ... | ... |
frontend/views/layouts/admin.php
... | ... | @@ -11,11 +11,6 @@ use yii\widgets\Menu; |
11 | 11 | */ |
12 | 12 | $this->beginContent('@app/views/layouts/main.php'); |
13 | 13 | ?> |
14 | -<?php | |
15 | - $referer = new Request(); | |
16 | - $referer->setPathInfo('/accouts/vacancy'); | |
17 | -var_dump(\Yii::$app->urlManager->parseRequest($referer)); | |
18 | -?> | |
19 | 14 | <div class="section-box admin-page"> |
20 | 15 | <div class="box-wr"> |
21 | 16 | <div class="box-all"> | ... | ... |