Review main Abandoned

27263[BUGFIX] Fix unique handling in versioned records

Benni Mack CR 0 V 0 Normal +162 −43 updated 08/04/16, 10:34

Commit message

Currently, the eval functionality for "unique" is disabled
for any fields in a versioned state. This makes it
impossible to e.g. add a "alias" in pages.

The main reason here is that the live record of the
versioned record is taken into account as well.

The fix enables unique/uniqueInPid for versioned
records and enables the "alias" field for pages in
non-live workspaces.

The patch now checks if the current record is in a
workspace and then excludes its live record from
the checks for all other live records and all other
records in this workspace.

One side-effect would be if I add an alias "ABC" to
the versioned record, and then would set "ABC" to
another page in the live system. On publishing
the versioned record, the DB would be inconsistent.
Maybe somebody has an idea here on how to
solve this.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 4