add resume

This commit is contained in:
iIronside committed 2022-11-03 17:46:36 +03:00
1 parent 81a3804685
commit 5ce34fe605
19 files changed
+830 -43

No files matched your search

+2 -2
View File
@@ -123,7 +123,7 @@ class UserCard extends \common\models\UserCard
$fieldsValue->save();
}
}
if (is_array($post['fields'])) {
if (array_key_exists('fields', $post) && is_array($post['fields'])) {
CardSkill::deleteAll(['card_id' => $this->id]);
if (is_array($post['skill']))
foreach ($post['skill'] as $item) {
@@ -135,7 +135,7 @@ class UserCard extends \common\models\UserCard
}
}
if(is_array($post['achievements'])){
if(array_key_exists('achievements', $post) && is_array($post['achievements'])){
AchievementUserCard::deleteAll(['user_card_id' => $this->id]);
foreach ($post['achievements'] as $item) {