Skip to content

WIP: Fix bug reported by steinberger@b1-systems.de#4

Open
ralflang wants to merge 1 commit into
horde:masterfrom
maintaina-com:patch-user-attendees
Open

WIP: Fix bug reported by steinberger@b1-systems.de#4
ralflang wants to merge 1 commit into
horde:masterfrom
maintaina-com:patch-user-attendees

Conversation

@ralflang

@ralflang ralflang commented Jun 8, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

image

@ralflang

Copy link
Copy Markdown
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 steinberger@b1-systems.de WIP: Fix bug reported by steinberger@b1-systems.de Jun 14, 2021
@ralflang

Copy link
Copy Markdown
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