Skip to content

Commit

Permalink
[api] always output an empty comment - just so
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 8, 2012
1 parent 7a9e153 commit 24b3e33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/app/models/bs_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ def render_xml
attributes = { name: self.state, who: self.commenter, when: self.updated_at.strftime("%Y-%m-%dT%H:%M:%S") }
attributes[:superseded_by] = self.superseded_by if self.superseded_by
r.state(attributes) do |s|
s.comment! self.comment unless self.comment.nil?
comment = self.comment
comment ||= ''
s.comment! comment
end
self.reviews.each do |review|
review.render_xml(r)
Expand Down

0 comments on commit 24b3e33

Please sign in to comment.