Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
I have a bug:
I mark some dates in Availability Calendars then press Preview button before save.
When I press Preview - all marked data will lost, and calendars not shown marked dates.
Comments
Comment #1
fietserwinI can't update the availability on preview, so you won't be able to see it on preview and I'm afraid that will be hard to solve.
It should not be lost though, so I will have a look, if I can prevent it from being lost and if it will be redrawn correctly on the edit form(that will also be necessary in case of validation errors somewhere on the entity form.
Comment #2
fietserwinUpon closer examination I found that:
The calendar is not redrawn correctly:
- after previewing (including the calendar in the preview)
- when validation errors occurred on other form fields and the form is rendered again.
However, the changes to the calendar are kept and will be saved when pressing save. So the error is more visual then data related. I will see if I can redraw the changes on the calendar when a form gets redrawn (due to preview or to validation errors).
Comment #4
fietserwinFixed and committed the bug. Thanks for reporting.
Due to the fact that I use an MVC model in js, even the calendar on the preview and full preview will show the updates :)