Pushed and Pull requested relating this issue. The issue was because, a case was missed in the Decompress method of the KeywordWidget.
The decompress method in KeywordWidget expected only AssignedKeyword , to fill the value in the keyword field. So when a validation of a field failed, like Title not being present(JS Validation added in Mezzanine 4.2) Content being empty when the status of the post is set as published. etc. When the validation fails, the arguments which were sent in the request are sent back to KeywordWidget, which were comma seperated values of keyword ids. I added the case, that if it gets a comma seperated value, then it should be split, values retrieved from DB and then the KeywordWidget should be assigned values to display. Let me know what you think of the solution. On Wednesday, 16 March 2016 14:24:12 UTC+5:30, [email protected] wrote: > > In the admin, if saving a page returns an error, the Keywords field value > disappear. > > Instructions to reproduce with 4.1.0: > > 1. Create a "rich text page" with titile "title", content "content" > and keywords "key0". > 2. Click "Save and continue editing". > 3. Delete title filed value. > 4. Click "Save and continue editing". > 5. Keywords field is now empty. > > Is there a work around or is it an issue? > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
