Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: Version & Modification date magic #18652

@GeorgII-web

Description

@GeorgII-web

Pimcore version

v11 or any other

Steps to reproduce

Mostly the issue exist on importing an object with specified modification date + if object already exist with a newer date.
In other words, on creating a version under existing ones.

  1. Create an object: modification date now(), version1 created.
  2. Re-import this object: modification date OLDER than actual one (specified from import src), version2 created.

Actual Behavior

On opening a tab in UI it shows data from vession1 - an OLD data.

Expected Behavior

Expected to show "last by id" version data from version2, not "last by date" version1.

Example

  1. Step 1. Save Product, modification date now, correct version on top & published, contains correct title.
Image
  1. Step 2. Import Product with older modification date, imported version in a top of the list, contains correct imported data and Published!
Image

Actual example behavior

Form (Edit tab) still contains data from a "latest by date" version (on a step 2 it's a second in a list with id 52923).
And a Draft created, even if it's disabled in a config.

Expected example behavior

Expected a published version data in a From.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions