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

New calendar event added does not sync its assignment when using multi-assignment #3004

Closed
matsbryntse opened this issue Jun 9, 2021 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@matsbryntse
Copy link
Member

matsbryntse commented Jun 9, 2021

Forum post

  1. Open multiassign demo
  2. Add new event
  3. calendar.crudManager.assignmentStore.changes => null

Hi,

(Note that the following calendar setup is using the crudManager with autoLoad and autoSync enabled on the BryntumCalendar React Wrapper)

How do I stop the calendar from loading resources in the resourceCombo in the eventEditor without my choosing when I am creating a new event? This seems to be causing a bug where it thinks the event already exists and it needs to send an assignment under "remove" to the backend (when I deselect the resource that was already populated on the resourceCombo) with a phantom id and a null eventId and null resourceId, and it's causing a lot of issues.

Also, should the phantomId be on the Id field?

Screenshot 2021-06-08 171808.png

Also of note, when I do not remove or add any more resources and I leave just the resource that the resourceCombo pre-selects, when I save that new event there isn't a corresponding assignment for it sent to the backend and I end up with an event with no assignments for it.Screenshot 2021-06-08 175920.png
Screenshot 2021-06-08 171808.png
Screenshot 2021-06-08 175920.png

@matsbryntse matsbryntse added bug Something isn't working forum Issues from forum labels Jun 9, 2021
@matsbryntse matsbryntse added this to the 4.1.6 milestone Jun 9, 2021
@matsbryntse matsbryntse changed the title New calendar event added does not sync its assignment New calendar event added does not sync its assignment when using multi-assignment Jun 9, 2021
@matsbryntse matsbryntse self-assigned this Jun 9, 2021
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant