This lookup wasn't actually doing what the comment said it was doing
and I don't see any reason to output the previous details of the object
for a delete action.
created = XML::Node.new "create"
created << elt.to_xml_node
else
created = XML::Node.new "create"
created << elt.to_xml_node
else
- # get the previous version from the element history
- prev_elt = elt.class.find([elt.id, elt.version])
- # if the element isn't visible then it must have been deleted, so
- # output the *previous* XML
+ # if the element isn't visible then it must have been deleted
deleted = XML::Node.new "delete"
deleted = XML::Node.new "delete"
- deleted << prev_elt.to_xml_node
+ deleted << elt.to_xml_node
- # must be a modify, for which we don't need the previous version
- # yet...
modified = XML::Node.new "modify"
modified << elt.to_xml_node
end
modified = XML::Node.new "modify"
modified << elt.to_xml_node
end