Skip to content

Commit

Permalink
Created patch for CKAN core bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Feb 23, 2024
1 parent 4bc07e7 commit 4a5c626
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion ckan/patches/00_test_test.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/ckanext/activity/templates/snippets/stream.html b/ckanext/activity/templates/snippets/stream.html
index 52c0d4b49..270a5f22f 100644
--- a/ckanext/activity/templates/snippets/stream.html
+++ b/ckanext/activity/templates/snippets/stream.html
@@ -14,6 +14,7 @@
{% endmacro %}

{% macro organization(activity) %}
+ {% set group_type = group_type or (activity.data.group.type if (activity.data.group and activity.data.group.type) else 'organization') %}
<a href="{{ h.url_for(group_type ~ '.read', id=activity.object_id) }}">
{{ activity.data.group.title if activity.data.group else _('unknown') }}
</a>

0 comments on commit 4a5c626

Please sign in to comment.