Show More
@@ -127,8 +127,9 b' def ValidReposGroup(edit, old_data):' | |||||
127 | # slugify repo group just in case :) |
|
127 | # slugify repo group just in case :) | |
128 | slug = repo_name_slug(group_name) |
|
128 | slug = repo_name_slug(group_name) | |
129 |
|
129 | |||
|
130 | print old_data | |||
130 | # check for parent of self |
|
131 | # check for parent of self | |
131 | if old_data['group_id'] == group_parent_id: |
|
132 | if edit and old_data['group_id'] == group_parent_id: | |
132 | e_dict = {'group_parent_id':_('Cannot assign this group ' |
|
133 | e_dict = {'group_parent_id':_('Cannot assign this group ' | |
133 | 'as parent')} |
|
134 | 'as parent')} | |
134 | raise formencode.Invalid('', value, state, |
|
135 | raise formencode.Invalid('', value, state, |
General Comments 0
You need to be logged in to leave comments.
Login now