Skip to content

Fix resource_icon with component or manifest nil#10134

Merged
ahukkanen merged 1 commit intodevelopfrom
fix/resource-icon-with-nil-component-or-manifest
Dec 9, 2022
Merged

Fix resource_icon with component or manifest nil#10134
ahukkanen merged 1 commit intodevelopfrom
fix/resource-icon-with-nil-component-or-manifest

Conversation

@fblupi
Copy link
Copy Markdown
Member

@fblupi fblupi commented Nov 30, 2022

🎩 What? Why?

Fix errors undefined method manifest for nil:NilClass and undefined method icon for nil:NilClass when the resource component is nil (e.g., initiatives).

Testing

In a fresh installation of decidim 0.27 with the initiatives module installed. Log in with a user and leave a comment in an initiative. Log in with another user and reply to the comment previously created. Log in again with the first user and go to the notifications page. You will see an undefined method for nil:NilClass error.

📷 Screenshots

Error displayed before applying the changes proposed in this PR

♥️ Thank you!

@ahukkanen ahukkanen added type: fix PRs that implement a fix for a bug module: core labels Dec 9, 2022
@ahukkanen ahukkanen merged commit c5fe30e into develop Dec 9, 2022
@ahukkanen ahukkanen deleted the fix/resource-icon-with-nil-component-or-manifest branch December 9, 2022 18:20
entantoencuanto added a commit that referenced this pull request Dec 16, 2022
* develop:
  Redesign: action buttons (#9852)
  Integrate reported users in Global moderation (#10018)
  Fix resource_icon with component or manifest nil (#10134)
  Revent Docker actions to Ubuntu 20.04 due to OpenSSL issues (#10142)
  Fix push notifications URL method (#10017)
  Fix typo in README (#10110)
  Add correct call for conference speaker (#10061)
  Fix missing fields on duplicate meetings functionality (#9899)
  Fix translations missing on admin log (#9889)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants