CRITFC / Helpdesk

Parent repository for tribal CDMS documentation and issues
1 stars 0 forks source link

Save issue in Edit Project modal Project tab #29

Closed cwatry closed 4 years ago

cwatry commented 4 years ago

Changes don't save when deleting existing text from fields in the Project tab of the Edit Project modal. Changes do save successfully when replacing existing text w/ new text; however, if the field is left blank after deleting existing text, the changes do not save.

nowinski commented 4 years ago

Confirmed. Was able to reproduce this on my machine. Will look into it.

nowinski commented 4 years ago

Traced to nested if logic in modal-edit-project.js:

If the incoming field has a value then --If the incoming field is multiselect or multiselect-checkbox then ----Do special stuff before getting the value --Else ----Just get the value End

There is no handling for incoming fields without values

Capture