app/soc/logic/models/document.py
changeset 1517 a467d13e34ea
parent 1419 5d0f80ad7b9f
child 1594 b80bf089d5f7
--- a/app/soc/logic/models/document.py	Thu Feb 26 16:51:35 2009 +0000
+++ b/app/soc/logic/models/document.py	Thu Feb 26 16:52:29 2009 +0000
@@ -61,10 +61,12 @@
 
     return ['prefix', 'scope_path', 'link_id']
 
-  def _updateField(self, entity, name, value):
+  def _updateField(self, entity, entity_properties, name):
     """Special logic for role. If state changes to active we flush the sidebar.
     """
 
+    value = entity_properties[name]
+
     if (name == 'is_featured') and (entity.is_featured != value):
       sidebar.flush()