Skip to content

Drafted applications cannot be sent #4478

@bmispelon

Description

@bmispelon

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Create a fund/round/... (I use the Concept+Proposal type but I don't think it makes a difference here)
  2. Navigate to the application form
  3. Fill in required field
  4. Press "Save draft"
  5. In the next screen, press "continue editing"
  6. 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

  • Applicants

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugBugs! Things that are broken :-/

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions