branch | stable |
changeset 6284 | c35b2ebeb3c9 |
parent 5768 | 1e73a466aa69 |
child 6333 | e3994fcc21c3 |
--- a/server/sqlutils.py Fri Sep 17 16:54:57 2010 +0200 +++ b/server/sqlutils.py Fri Sep 17 17:25:17 2010 +0200 @@ -262,8 +262,7 @@ eschema = entity.e_schema for attr in entity.edited_attributes: value = entity[attr] - rschema = eschema.subjrels[attr] - if rschema.final: + if value is not None and eschema.subjrels[attr].final: atype = str(entity.e_schema.destination(attr)) if atype == 'Boolean': value = self.dbhelper.boolean_value(value)