Skip to content

Commit

Permalink
Merge branch 'master' into 2375-demo-theme-development
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 10, 2012
2 parents a40a369 + abf6adb commit d88ca4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/lib/activity_streams.py
Expand Up @@ -35,7 +35,7 @@ def get_snippet_resource(activity, detail):
activity['data']['package']['id'])

def get_snippet_related_item(activity, detail):
return h.relate_item_link(activity['data']['related'])
return h.related_item_link(activity['data']['related'])

def get_snippet_related_type(activity, detail):
# FIXME this needs to be translated
Expand Down
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -913,7 +913,7 @@ def resource_link(resource_dict, package_id):
return link_to(text, url)

def related_item_link(related_item_dict):
text = related_item_dict.title
text = related_item_dict.get('title', '')
url = url_for(controller='related',
action='read',
id=related_item_dict['id'])
Expand Down

0 comments on commit d88ca4d

Please sign in to comment.