diff --git a/Web/Presenters/UserPresenter.php b/Web/Presenters/UserPresenter.php index 029466af..52330746 100644 --- a/Web/Presenters/UserPresenter.php +++ b/Web/Presenters/UserPresenter.php @@ -167,8 +167,11 @@ final class UserPresenter extends OpenVKPresenter if ($this->postParam("gender")) if($this->postParam("gender") == "hide") $user->setGender(NULL); - elseif($this->postParam("gender") == "other" && $this->postParam("other-gender-string")) - $user->setGender($this->postParam("other-gender-string")); + elseif($this->postParam("gender") == "other") + if($this->postParam("other-gender-string")) + $user->setGender($this->postParam("other-gender-string")); + else + $user->setGender(NULL); else $user->setGender($this->postParam("gender")); diff --git a/Web/Presenters/templates/User/Edit.xml b/Web/Presenters/templates/User/Edit.xml index f5e537ad..b493121a 100644 --- a/Web/Presenters/templates/User/Edit.xml +++ b/Web/Presenters/templates/User/Edit.xml @@ -143,13 +143,13 @@ - + diff --git a/locales/en.strings b/locales/en.strings index bb5abb1e..f00e12c2 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -72,6 +72,7 @@ "non-binary" = "non-binary"; "other" = "other"; "other_gender_placeholder" = "I refer to myself as..."; +"hidden" = "not specified"; "description" = "Description"; "save" = "Save"; "main_information" = "Main information"; diff --git a/locales/ru.strings b/locales/ru.strings index cd142ec5..1cb1a923 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -74,6 +74,7 @@ "non-binary" = "небинарный"; "other" = "другой"; "other_gender_placeholder" = "Я идентифицирую себя как..."; +"hidden" = "не указан"; "description" = "Описание"; "save" = "Сохранить"; "main_information" = "Основная информация";