Fix registration error with email language selected

This commit is contained in:
tusooa 2023-02-12 15:38:36 -05:00
parent 7ae61f6bd5
commit 65d78ced93
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ const registration = {
confirm: '', confirm: '',
birthday: '', birthday: '',
reason: '', reason: '',
language: '' language: ['']
}, },
captcha: {} captcha: {}
}), }),
@ -100,7 +100,7 @@ const registration = {
this.user.captcha_token = this.captcha.token this.user.captcha_token = this.captcha.token
this.user.captcha_answer_data = this.captcha.answer_data this.user.captcha_answer_data = this.captcha.answer_data
if (this.user.language) { if (this.user.language) {
this.user.language = localeService.internalToBackendLocale(this.user.language) this.user.language = localeService.internalToBackendLocaleMulti(this.user.language.filter(k => k))
} }
this.v$.$touch() this.v$.$touch()

View File

@ -210,6 +210,7 @@
:prompt-text="$t('registration.email_language')" :prompt-text="$t('registration.email_language')"
:language="v$.user.language.$model" :language="v$.user.language.$model"
:set-language="val => v$.user.language.$model = val" :set-language="val => v$.user.language.$model = val"
@click.stop.prevent
/> />
</div> </div>