Fix to_xml method of old_relation model.
authorMatt Amos <zerebubuth@gmail.com>
Mon, 13 Oct 2008 14:29:30 +0000 (14:29 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Mon, 13 Oct 2008 14:29:30 +0000 (14:29 +0000)
app/models/old_relation.rb

index 428177755492a6a4981121f3ea8a1274f5945f5d..10c76a758cc4561dfbf2babb89bc0f9f4358dd21 100644 (file)
@@ -91,7 +91,7 @@ class OldRelation < ActiveRecord::Base
     el1['id'] = self.id.to_s
     el1['visible'] = self.visible.to_s
     el1['timestamp'] = self.timestamp.xmlschema
-    el1['user'] = self.user.display_name if self.user.data_public?
+    el1['user'] = self.changeset.user.display_name if self.changeset.user.data_public?
     el1['version'] = self.version.to_s
     el1['changeset'] = self.changeset_id.to_s