Review main Merged

65213[BUGFIX] Use ADMCMD_prev to keep live version in workspace split view

Benni Mack CR +2 V +2 Easy +17 −11 updated 08/06/20, 21:59

Commit message

Previously, when using the "Split Preview" for comparing a workspace
version, and a live workspace, in iframes, the workspace version
received the GET Parameter "&ADMCMD_prev=1", and the live workspace
the "ADMCMD_noBeUser=1" (= no backend user is logged in) for THESE
requests.

Navigating through the live workspace, the ADMCMD_* GET parameters are
lost in both variants.

This change replaces the ADMCMD_noBeUser=1 with ADMCMD_prev=LIVE
making the options consistent naming-wise.

In addition, when ADMCMD_prev=LIVE is set, the current BE_USER
is kept but the workspace is set to "0" temporary (for this request),
allowing for e.g. the admin panel to continue to work.

When ADMCMD_prev=LIVE or ADMCMD_prev=IGNORE is set, the parameter
is added to config.linkVars, allowing to keep using the ADMCMD_prev
when browsing through the workspace and live versions in the iframes.

Review

  • Code review CR +2

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

  • Verified V +2

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

Issues 1

Files 4