orppst / pst-gui

web based front end for the tool
Mozilla Public License 2.0
0 stars 0 forks source link

Justifications fail to change format if text string is empty #268

Open DJWalker42 opened 5 days ago

DJWalker42 commented 5 days ago

If the 'text' field of a Justification is empty, then an attempt to change the justification format fails. Notice that in the form validation you are not allowed to have an empty or undefined 'text' string, but the default justification i.e., the ones created when the proposal is created, is the empty string.

To recreate: create a new proposal with just the title and summary go to the Justifications panel and click edit on one of the justifications attempt to change format from the ascii default error notification re: null string

A work around might be to provide a default sentence of text for the justifications.

DJWalker42 commented 5 days ago

I've updated master with a really complex workaround. The default justification text field is now a single white-space.

An actual solution to this may require a deeper look at the API implementation of how justifications are updated.

As this is a workaround not a solution I shall leave this issue open.