StartPublish not restored to original value after scheduling

Fixed in

EPiServer.CMS.UI 10.7.0

Created

Feb 15 2017

Updated

Aug 30 2017

Area

CMS UI

State

Closed, Fixed and tested


Description

Even if a delayed publishing job has been executed, the StartPublish date still isn't restored to its original value. This is because the Save method is being called twice.

Steps to reproduce:

  1. Create a page.
  2. Give it a published date in the past.
  3. Publish the page.
  4. Change to the page you just created and schedule that change to be published in the near future.
  5. Once that date has passed, run the Publish Delayed Content Versions job.

Expected:
The “Published” date should be restored to its original value from when it was previously published.

Actual:
The published page keeps the scheduled date as the “Published” date.