Metadecidim
Sign in

Process

Report a Bug

finished not yet on protocol

Error 500 when creating a participatory text without an uploaded file

If I have a proposal component with the "participatory texts" flag active, and I try to create a participatory text without uploading any file, the platform generates a server error (undefined method "content_type" for nil).

The form should validate there's an uploaded document.

3 comments

  1. I removed the validation to allow updating the metainformation of the Participatory Text without having to upload a file. So the form should validate there's an uploaded document only on create.

    0 votes up 0 votes down
    1. Ah yes, makes sense! 😄

      0 votes up 0 votes down
  2. Hi @, thanks for reporting this. Issue opened here: https://github.com/decidim/decidim/issues/5074

    0 votes up 0 votes down

Sign in with your Atmosphere account to comment.