Mercurial > kallithea
diff rhodecode/model/forms.py @ 1539:bd604cf75c5a beta
fixes #260 Put repo in group, then move group to another group -> repo becomes unavailable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 10 Oct 2011 03:27:31 +0200 |
parents | c0e6057543ff |
children | 6f468ba37650 |
line wrap: on
line diff
--- a/rhodecode/model/forms.py Mon Oct 10 02:09:52 2011 +0200 +++ b/rhodecode/model/forms.py Mon Oct 10 03:27:31 2011 +0200 @@ -122,7 +122,7 @@ def validate_python(self, value, state): #TODO WRITE VALIDATIONS group_name = value.get('group_name') - group_parent_id = int(value.get('group_parent_id') or - 1) + group_parent_id = int(value.get('group_parent_id') or -1) # slugify repo group just in case :) slug = repo_name_slug(group_name)