]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10384 No more possible to remove an email of a user
authorStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 2 Feb 2018 09:12:50 +0000 (10:12 +0100)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 2 Feb 2018 09:13:35 +0000 (10:13 +0100)
server/sonar-web/src/main/js/apps/users/components/UserForm.tsx

index 072f46631078f960a587a1878c24854170ac2b78..d7052b3d49b4561cf1d8ac8360917620976783d7 100644 (file)
@@ -121,7 +121,7 @@ export default class UserForm extends React.PureComponent<Props, State> {
     event.preventDefault();
     this.setState({ submitting: true });
     updateUser({
-      email: this.state.email || undefined,
+      email: this.state.email,
       login: this.state.login,
       name: this.state.name,
       scmAccount: uniq(this.state.scmAccounts).join(',')