Fix setting time_added when publishing a review request.

Review Request #3800 — Created Jan. 27, 2013 and submitted — Latest diff uploaded

Information

Review Board
release-1.7.x

Reviewers

Fix setting time_added when publishing a review request.

The change added to set time_added to the publish time caused the
creation time to always be the publish time for every publish, not just
the first.

We now only set this when there hasn't been any changes previously made
to the review request and it's being published the first time.
Tested updating review requests and publishing the changes. No creation time change.

Tested closing a review request (tried submit and discard) and reopening, making changes,
and publishing. No creation time change.

Tested publishing a very old draft review request that was never published, and saw the
creation time reflect the current time.
    Loading...