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
Exception in the dashboard page after #7943 #7980
Comments
Just adding since in the initial report ckan version from master is mentioned, I'm also hitting this issue with 2.10.3 (after upgrading from 2.10.1 - however I did not have the activity plugin enabled previously, just noticed it when generating a new config for the beaker stuff and diffing with my old, updating mine accordingly) |
I was lucky to catch this error; we're updating our DEV sites to 2.10.3, and my initial testing didn't see any problems, because the account I was using hadn't recently added/changed any organisations. Fortunately when I tested on another site, I happened to use an account that was affected. If custom org types are to be supported, then should we be actually passing in a group_type from the user activity page, instead of falling back to |
It looks like the group is already accessible via the activity object, so instead of just falling back to
|
CKAN version
master
Describe the bug
Exception when visiting the
/dashboard
pageSteps to reproduce
activity
plugin/dashboard
page (News items)Expected behavior
No exception
Additional details
This was introduced in #7943 . The changes there didn't take into account the scenario where
group_type
is empty (because thestream.html
snippet is called from the dashboard, and not from the organization activity page). The fix below should address the issue, but a patch should also include:group_type
to the{% macro group(activity) %}
block in the same template.The text was updated successfully, but these errors were encountered: