From a08dc377ff3f8c92ccd0fbd09cd4b5e492a763ad Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Wed, 2 Apr 2014 13:51:48 -0400 Subject: [PATCH] [#1434] use default_show_group_schema when no other schema given --- ckan/logic/action/get.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index 98d8aea1735..f326590c367 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -1055,10 +1055,11 @@ def _group_or_org_show(context, data_dict, is_org=False): {'model': model, 'session': model.Session}, {'id': group_dict['id']}) - if schema: - group_dict, errors = lib_plugins.plugin_validate( - group_plugin, context, group_dict, schema, - 'organization_show' if is_org else 'group_show') + if schema is None: + schema = logic.schema.default_show_group_schema() + group_dict, errors = lib_plugins.plugin_validate( + group_plugin, context, group_dict, schema, + 'organization_show' if is_org else 'group_show') return group_dict