Skip to content

Permissions screen on budgets throw a 500  #11292

@alecslupu

Description

@alecslupu

Describe the bug

When i visit budgets / results / permissions screen i get a 500 error caused by the following error:


NoMethodError in Decidim::ParticipatoryProcesses::Admin::ComponentPermissions#edit

Showing /home/alecslupu/Sites/tremend/dife/backend/decidim/decidim-admin/app/views/decidim/admin/resource_permissions/edit.html.erb where line #9 raised:

undefined method `project_path' for #<ActionDispatch::Routing::RoutesProxy:0x00007f5c1c137ca0 @scope=#<Decidim::EngineRouter:0x00007f5c1c130f68 @engine="decidim_participatory_process_budgets", @default_url_options={:host=>"localhost", :component_id=>14, :participatory_process_slug=>"curriculum-polish"}, @_decidim_participatory_process_budgets=#<ActionDispatch::Routing::RoutesProxy:0x00007f5c1c137ca0 ...>>, @routes=#<ActionDispatch::Routing::RouteSet:0x00007f5c74d546e8>, @helpers=#<Module:0x00007f5c74fcdbe0>, @script_namer=#<Proc:0x00007f5c74fcdca8 /home/alecslupu/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/actionpack-6.1.7.4/lib/action_dispatch/routing/mapper.rb:683 (lambda)>>
Did you mean?  post_path

image

To Reproduce

  1. Go to try.metadecidim.org
  2. Login as admin and access admin panel
  3. got to Participatory processes / components / budgets / Manage results page
  4. Click on proposals
  5. See error

Expected behavior

When visiting the permission path, we should clearly see the permissions screen.

Screenshots

No response

Stacktrace

No response

Extra data

  • Decidim Version: 0.28-dev, 0.27
  • Decidim installation: try.decidim + local installation

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions