4teamwork / ftw.participation

Invite other users (registered or unregistered) to a context in plone.
3 stars 0 forks source link

Inviting users with different login-name and id will fail. #50

Closed elioschmutz closed 7 years ago

elioschmutz commented 7 years ago

Inviting a user in the @@invite-view will fail as soon as the users id differs to its login-name.

bildschirmfoto 2017-04-04 um 17 35 14

https://github.com/4teamwork/ftw.participation/blob/master/ftw/participation/browser/invite.py#L241

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.z3cform.layout, line 66, in __call__
  Module plone.z3cform.layout, line 50, in update
  Module ftw.participation.browser.invite, line 194, in update
  Module z3c.form.form, line 210, in update
  Module plone.app.z3cform.csrf, line 21, in execute
  Module z3c.form.action, line 98, in execute
  Module z3c.form.button, line 315, in __call__
  Module z3c.form.button, line 170, in __call__
  Module ftw.participation.browser.invite, line 241, in handle_invite
AttributeError: 'NoneType' object has no attribute 'getProperty'

Issuer: https://extranet.4teamwork.ch/support/agg/tracker/134