Closed simpsonw closed 9 years ago
This seems to be an issue with app/webroot/js/questions/add.js, in particular the function add_edit_form_submit. I will look into this later.
I believe I have fixed this issue. It was actually the QuestionsController that was parsing the validation errors incorrectly. This is ready to be reviewed. I have made my changes in the gh_110_empty_alert_box branch.
Makes sense to me!
Steps to reproduce
Expected behavior
I'm not 100% sure what the exact behavior should be, but IMO, you should get some kind of warning that the "Question" field is empty.
Actual behavior
An empty JavaScript alert pops up, which seems to be very confusing.