django-fluent / django-fluent-contents

A widget engine to display various content on Django pages
http://django-fluent.org/
Apache License 2.0
149 stars 39 forks source link

Placeholders incorrectly set by JS on validation errors for new pages #79

Open sam-mi opened 8 years ago

sam-mi commented 8 years ago

Steps to reproduce:

However, at this stage, the placeholders will have been incorrectly initialised, and saving again will result in a generic validation error with no fields highlighted to indicate what the problem is. There will also be a number of superfluous placeholder tabs labelled "new..." visible.

Selecting a different layout and then the desired one again seems to resolve the problem, by getting the JS to re-initialise the placeholders.

Requiring the JS to re-initialise the placeholders when the page is loaded with the validation error is likely to fix the problem.