Bug ao realizar upload de anexos via admin
Descrição
Ao realizar o upload de anexos em admin/participatory_processes/brasilparticipativo/attachments
um método inexistente está quebrando a página.
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0]
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] ActionView::Template::Error (undefined method `max_image_widht' for #<Decidim::AttachmentUploader:0x00007fef51e54578 @model=#<Decidim::Attachment id: nil, title: nil, description: nil, file: nil, content_type: nil, file_size: nil, attached_to_id: 6, created_at: nil, updated_at: nil, attached_to_type: "Decidim::ParticipatoryProcess", weight: 0, attachment_collection_id: nil>, @mounted_as=:file>
Did you mean? max_image_height_or_width):
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 23: </div>
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 24:
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 25: <div class="row column">
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 26: <%= form.upload :file, optional: false %>
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 27: </div>
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 28: </div>
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] 29: </div>
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0]
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] app/lib/decidim/file_validator_humanizer.rb:89:in `max_file_dimensions'
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] app/lib/decidim/file_validator_humanizer.rb:41:in `messages'
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] app/lib/decidim/form_builder.rb:514:in `upload_help'
[2564a1f6-e48c-43c8-b707-b9c36df9f7a0] app/lib/decidim/form_builder.rb:458:in `upload'
Passos para replicar falha
- Exemplo passo 1
- Exemplo passo 2