When creating a new revision, value of $entity->revision_created will be copied from the old revision. As a result of this, CommerceLicenseEntityController::saveRevision() will always create revisions with a creation date copied from the previous revision.

Comments

bbujisic created an issue. See original summary.

bbujisic’s picture

Status: Active » Needs review
StatusFileSize
new811 bytes

Solved by unconditionally assigning the revision_created and revision_ended values in CommerceLicenseEntityController::saveRevision()

pjcdawkins’s picture

This does the same thing for the revision_uid property and also fixes the log property.

  • pjcdawkins committed 049aba3 on 7.x-1.x
    Issue #2930473 by bbujisic, pjcdawkins: Wrong revision_created on...
pjcdawkins’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.