Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on admin Assemblies Edit #12710

Closed
Ricocotam opened this issue Apr 20, 2024 · 2 comments
Closed

Error on admin Assemblies Edit #12710

Ricocotam opened this issue Apr 20, 2024 · 2 comments
Assignees

Comments

@Ricocotam
Copy link

Ricocotam commented Apr 20, 2024

Describe the bug

When I try to reach the following URL : admin/assemblies/my_assembly/landing_page/content_blocks/{assembly_id}/edit.
The assembly has ~20 linked assemblies.

To Reproduce

  1. Go to /admin/assemblies/assembly-name/landing_page/edit/
  2. Click on the edit button for linked assemblies
  3. Error

Expected behavior

Should see the edition of linked assemblies

Screenshots

No response

Stacktrace

, [2024-04-20T07:58:55.044897 #121682]  INFO -- : [ddc3c473-3fea-44d6-b977-35eb6153ee78] Completed 500 Internal Server Error in 416ms (ActiveRecord: 13.2ms | Allocations: 23043)
F, [2024-04-20T07:58:55.057794 #121682] FATAL -- : [ddc3c473-3fea-44d6-b977-35eb6153ee78]
[ddc3c473-3fea-44d6-b977-35eb6153ee78] ActionView::Template::Error (undefined local variable or method `parent_assembly' for #<ActionView::Base:0x00000000066aa8>):
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     1: <% content_for :breadcrumb_context_menu do %>
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     2:   <div class="process-title-content-breadcrumb-container-right">
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     3:     <% if allowed_to? :create, :assembly %>
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     4:       <%= link_to new_assembly_path(parent_id: parent_assembly&.id), class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link" do %>
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     5:         <%= icon "add-line", class: "w-4 h-4" %>
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     6:         <span>
[ddc3c473-3fea-44d6-b977-35eb6153ee78]     7:           <%= t("actions.new_assembly", scope: "decidim.admin") %>
[ddc3c473-3fea-44d6-b977-35eb6153ee78]
[ddc3c473-3fea-44d6-b977-35eb6153ee78] decidim-assemblies (0.28.0) app/views/layouts/decidim/admin/assemblies.html.erb:4

Extra data

  • Decidim Version : 0.28
  • Server OS : debian

Additional context

No response

@andreslucena andreslucena added type: bug Issues that describe a bug module: assemblies labels Apr 24, 2024
@andreslucena andreslucena self-assigned this Apr 24, 2024
@andreslucena
Copy link
Member

Hi @Ricocotam
I'm like 90% sure that I solved this one with #12301. The thing is that we didn't publish the v0.28.1 yet, so this will still be happening in v0.28.0.

You can check this out by trying this out in these two instances:

  1. nightly.decidim.org: it's on v0.29.0 (develop branch). This should not happen anymore
  2. try.decidim.org: it's on v0.28.0. This should happen

@andreslucena
Copy link
Member

@Ricocotam v0.28.1 was published, please try with that version. If you see that you can reproduce this issue with that version feel free to reopen this issue. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants