Error creating new user wazo-ui

Hi everyone,
I have the wazo version 20.07 installed and when I try to create a user it is not saved.

I check the log and it shows the following.

2020-05-28 13:53:37,791 [533] (ERROR) (wazo_ui.errors): Unexpected error:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3/dist-packages/flask_classful.py", line 231, in proxy
    response = view(**request.view_args)
  File "/usr/lib/python3/dist-packages/flask_login/utils.py", line 261, in decorated_view
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/flask_classful.py", line 202, in inner
    return fn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo_ui/helpers/classful.py", line 251, in post
    resources = self._map_form_to_resources_post(form)
  File "/usr/lib/python3/dist-packages/wazo_ui/plugins/user/view.py", line 230, in _map_form_to_resources_post
    return self._map_form_to_resources(form)
  File "/usr/lib/python3/dist-packages/wazo_ui/plugins/user/view.py", line 237, in _map_form_to_resources
    resource['lines'] = self._map_form_to_resource_line(form)
  File "/usr/lib/python3/dist-packages/wazo_ui/plugins/user/view.py", line 299, in _map_form_to_resource_line
    if line['registrar']:
KeyError: 'registrar'

If they have any clue that it may be what is failing or it is a bug in wazo-ui.

Thank you very much for the help.

Hello. The solution was already posted in French so I just try to translate here:

It’s a bug. While waiting for the update it is solvable by modifying the following file: /usr/lib/python3/dist-packages/wazo_ui/plugins/user/view.py

And line 299 of the view.py file you have to modify this:

if line['registrar']:

To this:

if line.get('registrar'):

Then you have to reboot the machine.

Works correctly. Thank you