ezsystems/ezpublish-legacy — pull request #742 by joaoinacio (2013-08-29 18:12:13+00:00)
Title: Fix EZP-21471: JS error on versionview of unpublished object.

JIRA Issue: https://jira.ez.no/browse/EZP-21471

When previewing an unpublished object, a NodeID does not yet exist, which caused the parameter array for the 'class' popup menu to be incorrectly created, resulting in a JavaScript error.

This fixes the issue by making sure a valid parameters array is used, using a `null` value if there is no NodeID yet.
In this case, it also disables the menu options 'Manage Versions' and 'Manage URL Aliases', as they are not applicable to the object being created.