Commit 812cc016 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[views] Do not select goto-ckan-dataset if there is no CKAN id

parent 5e3ef3b319cf
......@@ -35,7 +35,7 @@ class GotoCKANDatasetComponent(component.EntityCtxComponent):
__regid__ = 'ckanpublish.goto-ckan-dataset'
__select__ = (component.EntityCtxComponent.__select__ &
score_entity(lambda x: hasattr(x, 'ckan_dataset_id')))
score_entity(lambda x: getattr(x, 'ckan_dataset_id', False)))
title = _('CKAN dataset')
context = 'incontext'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment