hooks/integrity.py
changeset 2896 1e7848c69be4
parent 2847 c2ee28f4d4b1
child 2900 9d65e0350aa1
--- a/hooks/integrity.py	Tue Aug 18 00:29:19 2009 +0200
+++ b/hooks/integrity.py	Tue Aug 18 00:29:23 2009 +0200
@@ -219,7 +219,7 @@
     def __call__(self):
         if self.event == 'before_delete_entity' and self.entity.name == 'owners':
             raise ValidationError(self.entity.eid, {None: self._cw._('can\'t be deleted')})
-        elif self.event == 'before_update_entity' and 'name' in self.entity.edited_attribute:
+        elif self.event == 'before_update_entity' and 'name' in self.entity.edited_attributes:
             newname = self.entity.pop('name')
             oldname = self.entity.name
             if oldname == 'owners' and newname != oldname: