Fix 'publish' to correctly save the 'public' flag on drafts
Review Request #186 — Created Dec. 7, 2007 and submitted
|Review Board SVN (deprecated)|
publish() currently writes the public flag on a review_request, but if there's a draft, that change gets lost. SVN r1051 makes this problem obvious, in that you have to hit Publish twice before it actually publishes the review request. This patch makes sure that the public flag is set on the review_request object that actually gets saved.