Skip to content

Meetings authoring Proposals can still be deleted #5900

@tramuntanal

Description

@tramuntanal

Describe the bug
When a Meeting is the author, or origin, of a Proposal it can still be removed without any notice.

To Reproduce
Steps to reproduce the behavior:

  1. From the admin panel, create a Proposal, mark it as originated in a Meeting and select a Meeting.
  2. Go to the list of Meetings, and remove the previously selected Meeting.
  3. Go to the public views
  4. Navigate to the proposal or to the list of proposals where the previous Proposal appears.
  5. See error

Expected behavior
As a participant I don't want to see a crash in the front end.

As an administrator I want to be advised that the Meeting has associated Proposals when deleting it. Preferentially I would also like to be advised of which proposals are associated with the Meeting.

Screenshots
N/A

Stacktrace
If applicable, add the error stacktrace to help explain your problem.

uninitialized constant NilClassPresenter

/home/oliver/prog/decidim/decidim/decidim-core/app/helpers/decidim/application_helper.rb:31:in `present'
/home/oliver/prog/decidim/decidim/decidim-core/app/cells/decidim/coauthorships_cell.rb:48:in `block in presenters_for_identities'
/home/oliver/prog/decidim/decidim/decidim-core/app/cells/decidim/coauthorships_cell.rb:44:in `map'
/home/oliver/prog/decidim/decidim/decidim-core/app/cells/decidim/coauthorships_cell.rb:44:in `presenters_for_identities'
/home/oliver/prog/decidim/decidim/decidim-core/app/cells/decidim/coauthorships_cell.rb:27:in `show'
cells (4.1.7) lib/cell/view_model.rb:114:in `render_state'
cells (4.1.7) lib/cell/caching.rb:46:in `render_state'
cells (4.1.7) lib/cell/view_model.rb:92:in `call'
cells-rails (0.0.9) lib/cell/rails.rb:54:in `call'
cells (4.1.7) lib/cell/view_model.rb:125:in `to_s'
actionview (5.2.4.2) lib/action_view/buffers.rb:14:in `<<'
/home/oliver/prog/decidim/decidim/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb:48:in `__home_oliver_prog_decidim_decidim_decidim_proposals_app_views_decidim_proposals_proposals_show_html_erb___2482458193689013116_70203019676920'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions