Merge "Fix cannot delete user's email addresses in the identity/user panel"
This commit is contained in:
commit
f75168e5e6
@ -259,7 +259,7 @@ class UpdateUserForm(BaseUserForm, AddExtraColumnMixIn):
|
||||
data.pop('description')
|
||||
try:
|
||||
if "email" in data:
|
||||
data['email'] = data['email'] or None
|
||||
data['email'] = data['email']
|
||||
response = api.keystone.user_update(request, user, **data)
|
||||
messages.success(request,
|
||||
_('User has been updated successfully.'))
|
||||
|
@ -500,7 +500,7 @@ class UsersViewTests(test.BaseAdminViewTests):
|
||||
|
||||
api.keystone.user_update(IsA(http.HttpRequest),
|
||||
user.id,
|
||||
email=user.email,
|
||||
email=user.email or "",
|
||||
name=user.name,
|
||||
project=self.tenant.id).AndReturn(None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user