Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Fix bug reported by [email protected] #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ralflang
Copy link
Member

@ralflang ralflang commented Jun 8, 2021

When saving an event with existing user attendees, only new attendees are saved but existing attendees are dropped.

This is because the prettyautocompleter invokes the parseuser on reset. parseuser will simply assume for a user string which is not in the "Displayname [user]" format that username and displayname are the same.

This in turn breaks two situations: Users sent to saveEvent will be invalid (unless the displayname happens to match the user name) also removing an existing user from the dialog will not remove his freebusy line.

The patch feeds the expected string format for parseuser rather than the bare displayname. The dialog will be loaded properly and all operations work as expected.

When saving an event with existing user attendees, only new attendees are saved but existing attendees are dropped
@mrubinsk
Copy link
Member

This patch seems to mangle the display of the user attendees:

image

@ralflang
Copy link
Member Author

Hi Michael,
Am 12.06.21 um 18:12 schrieb Michael J Rubinsky:

This patch seems to mangle the display of the user attendees:

image

Thank you for catching that. I did not have this during my tests. I will check if I am missing anything related from upstream in my environment.
Is there special activity to reproduce that like opening the dialog multiple times or do you see that directly after loading an existing event?

I will need to improve on this. Turning the PR to wip.

Regards

Ralf

@ralflang ralflang changed the title Fix bug reported by [email protected] WIP: Fix bug reported by [email protected] Jun 14, 2021
@ralflang
Copy link
Member Author

I cannot reproduce this glitch on my fork. Maybe it's because of some other changes I have...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants