Skip to content
Snippets Groups Projects
Commit e4a275bc authored by Megan Henning's avatar Megan Henning
Browse files

Return plural cont_type for collections

parent 200645bb
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ class GearHandler(base.RequestHandler):
if collection_id and cont_name != 'collections':
# Remove project and group, replace with collection
parents = parents[:-2]
collection['cont_type'] = 'collection'
collection['cont_type'] = 'collections'
parents.append(collection)
response['parents'] = [{'cont_name': p['cont_type'], '_id': p['_id'], 'label': p.get('label', 'unknown')} for p in parents]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment