Skip to content

Fix TypeError in newsletters#7872

Merged
mrcasals merged 2 commits intodevelopfrom
fix/typerror-in-newsletters
Apr 21, 2021
Merged

Fix TypeError in newsletters#7872
mrcasals merged 2 commits intodevelopfrom
fix/typerror-in-newsletters

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Apr 21, 2021

🎩 What? Why?

Sometimes, when sending a newsletter, a TypeError exception is raised. This is due to a method returning nil instead of an empty list.

This PR fixes the problem. Bug seems to be introduced in #7046 and related backports.

Error example: https://sentry.io/share/issue/7bcc9e62a01b44519d6a525ea9a4a447/

📌 Related Issues

None

Testing

Ensure CI is green.

@mrcasals mrcasals added module: comments type: fix PRs that implement a fix for a bug labels Apr 21, 2021
@mrcasals mrcasals merged commit 6564998 into develop Apr 21, 2021
@mrcasals mrcasals deleted the fix/typerror-in-newsletters branch April 21, 2021 14:01
mrcasals added a commit that referenced this pull request Apr 21, 2021
mrcasals added a commit that referenced this pull request Apr 21, 2021
orlera pushed a commit that referenced this pull request Apr 22, 2021
entantoencuanto added a commit that referenced this pull request Apr 23, 2021
* develop:
  Upgrade decidim-bulletin_board to 0.20.0 (#7881)
  New Crowdin updates (#7870)
  Fix editor: shift+enter makes single br tag before link (#7877)
  Fix TypeError in newsletters (#7872)
  Give admin panel access to monitoring committee members (#7843)
  New Crowdin updates (#7869)
  New Crowdin updates (#7864)
  Onboarding workflow after voting (#7839)
  Fix filter by scopes (#7858)
  Redirect unauthenticated users to sign in page for unauthorized views (#7852)
  New Crowdin updates (#7861)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant