# HG changeset patch # User Lennard de Rijk # Date 1227714758 0 # Node ID d6ae9dd215fb24a8760c2c9ff2b08d3c02ce6ab8 # Parent 7504504209a3cc1a90e2c18a4e423ce0a9846717 Fixes an error that occurs when moving the document by setting another link ID or Scope path. This is due to the fact that author is a required property in the Work model. Patch by: Lennard de Rijk diff -r 7504504209a3 -r d6ae9dd215fb app/soc/views/models/document.py --- a/app/soc/views/models/document.py Tue Nov 25 23:16:32 2008 +0000 +++ b/app/soc/views/models/document.py Wed Nov 26 15:52:38 2008 +0000 @@ -119,6 +119,9 @@ if not entity: # new document so set author fields['author'] = user + else: + # else the author is the original author + fields['author'] = entity.author fields['modified_by'] = user