diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index 16e0abfa79a..91d3bc41c5a 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -730,6 +730,10 @@ def group_show(context, data_dict): except AttributeError: schema = group_plugin.db_to_form_schema() + group_dict['num_followers'] = logic.get_action('group_follower_count')( + {'model': model, 'session': model.Session}, + {'id': group_dict['id']}) + if schema: group_dict, errors = _validate(group_dict, schema, context=context) return group_dict diff --git a/ckan/public/base/javascript/modules/popover-context.js b/ckan/public/base/javascript/modules/popover-context.js index e44fafbf6dc..b3fdb188656 100644 --- a/ckan/public/base/javascript/modules/popover-context.js +++ b/ckan/public/base/javascript/modules/popover-context.js @@ -191,7 +191,7 @@ this.ckan.module('popover-context', function($, _) { params.name = raw.name; params.description = raw.description; params.num_datasets = raw.packages.length; - //params.num_followers = raw.num_followers; + params.num_followers = raw.num_followers; } return params; },