##// END OF EJS Templates
bugfix for empty groups
marcink -
r1160:6e70fcca beta
parent child Browse files
Show More
@@ -127,7 +127,7 b' class ReposController(BaseController):'
127 defaults = c.repo_info.get_dict()
127 defaults = c.repo_info.get_dict()
128 group, repo_name = c.repo_info.groups_and_repo
128 group, repo_name = c.repo_info.groups_and_repo
129 defaults['repo_name'] = repo_name
129 defaults['repo_name'] = repo_name
130 defaults['repo_group'] = getattr(group[-1], 'group_id', None)
130 defaults['repo_group'] = getattr(group[-1] if group else None, 'group_id', None)
131
131
132 #fill owner
132 #fill owner
133 if c.repo_info.user:
133 if c.repo_info.user:
General Comments 0
You need to be logged in to leave comments. Login now