stats4sd / aec_portfolio

A proof of concept for the AEC Consortium Project Management / Assessment System
GNU General Public License v3.0
0 stars 0 forks source link

[BUG] (Minor) - Principle rating is not set from null to 0 on "save and next" #123

Closed dave-mills closed 1 year ago

dave-mills commented 1 year ago

Describe the bug In principle assessment (and additional assessment), when loading the modal dialog for a principle, if the rating is currently null, the rating should be set to 0. This prevents confusion as a null appears like a 0 on the sliding scale, but is not saved into the database.

When opening the dialog for the first time, the null rating is correctly set to 0.

To Reproduce

  1. Start the main principle assessment for an initiative.
  2. Click on any principle (except the last one). The rating will be set to 0 if it was null before.
  3. Click "save and next". The principle rating is now not set to 0 if it was null before.

Expected behavior The rating should always be set to 0 if it was null.