Skip to content

Commit

Permalink
[#1434] use default_show_group_schema when no other schema given
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Apr 2, 2014
1 parent 49381d2 commit a08dc37
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ckan/logic/action/get.py
Expand Up @@ -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


Expand Down

0 comments on commit a08dc37

Please sign in to comment.