# HG changeset patch # User Marcin Kuzminski # Date 2011-06-05 02:09:27 # Node ID 923d2f699bd74c48ad6d508c29c771d7db0a1a3f # Parent 4c9bd42f82f90efb1da77a19fef8b9778ffce9a5 fixed issue with adding new group. template typo fix for empty group diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py --- a/rhodecode/model/forms.py +++ b/rhodecode/model/forms.py @@ -127,8 +127,9 @@ def ValidReposGroup(edit, old_data): # slugify repo group just in case :) slug = repo_name_slug(group_name) + print old_data # check for parent of self - if old_data['group_id'] == group_parent_id: + if edit and old_data['group_id'] == group_parent_id: e_dict = {'group_parent_id':_('Cannot assign this group ' 'as parent')} raise formencode.Invalid('', value, state, diff --git a/rhodecode/templates/admin/repos_groups/repos_groups_show.html b/rhodecode/templates/admin/repos_groups/repos_groups_show.html --- a/rhodecode/templates/admin/repos_groups/repos_groups_show.html +++ b/rhodecode/templates/admin/repos_groups/repos_groups_show.html @@ -59,7 +59,7 @@ % else: - {_('There are no repositories groups yet')} + ${_('There are no repositories groups yet')} % endif