Scope is already set to entity.scope, so no need to overwrite in base._editPost().
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/base.py Sat Feb 21 11:08:15 2009 +0000
+++ b/app/soc/views/models/base.py Sat Feb 21 11:14:05 2009 +0000
@@ -672,9 +672,7 @@
if 'scope_path' not in fields:
return
- if entity:
- fields['scope'] = entity.scope
- else:
+ if not entity:
scope = self._params['scope_logic'].logic.getFromKeyName(
fields['scope_path'])
fields['scope'] = scope