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

fietserwin’s picture

I 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.

fietserwin’s picture

Version: 7.x-4.1 » 7.x-5.x-dev

Upon 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).

fietserwin’s picture

Title: Preview node not works » Preview node does not work
Status: Active » Fixed

Fixed 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 :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.