Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Create a fund/round/... (I use the Concept+Proposal type but I don't think it makes a difference here)
- Navigate to the application form
- Fill in required field
- Press "Save draft"
- In the next screen, press "continue editing"
- Press "Preview and submit"
Expected behavior
You'd expect to be taken to the preview page, with an option to submit the application. Instead the draft is just saved (as if you'd clicked "saved draft" again).
Priority
- High (keeping you from completing day-to-day tasks)
Once in a draft state, applications cannot be submitted.
Affected roles
Workaround
As a temporary workaround, I've found that adding an invisible submit button to the form prevents the bug.
I've done that by adding a new line above
|
{% trans "Save draft" as save_draft %} |
:
<button type="submit" style="display:none"></button>
Desktop (please complete the following information):
- OS: Linux
- Browser Firefox
- Version 136.0.2
Additional context
I believe this is caused by this line:
|
button.setAttribute("disabled", "disabled"); |
By making the submit button disabled, its name/value is not included in the POST data and the view therefore doesn't know that the "preview and send" button has been sent.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
You'd expect to be taken to the preview page, with an option to submit the application. Instead the draft is just saved (as if you'd clicked "saved draft" again).
Priority
Once in a draft state, applications cannot be submitted.
Affected roles
Workaround
As a temporary workaround, I've found that adding an invisible submit button to the form prevents the bug.
I've done that by adding a new line above
hypha/hypha/apply/funds/templates/funds/applicationsubmission_form.html
Line 35 in b747fec
Desktop (please complete the following information):
Additional context
I believe this is caused by this line:
hypha/hypha/static_src/javascript/application-form.js
Line 54 in b747fec
By making the submit button
disabled, its name/value is not included in the POST data and the view therefore doesn't know that the "preview and send" button has been sent.