close

Filter

loading table of contents...

Release Notes / Version 10.2101

Table Of Contents

Multi-Site API change in ContentObjectSiteAspect

The behaviour of methods #getMasterVersionNumber and #getMasterVersion in com.coremedia.cap.multisite.ContentObjectSiteAspect was changed to return correct values for derived contents that haven't been translated yet.

In previous releases, method #getMasterVersion returned null for not yet translated content, and method #getMasterVersionNumber returned the negative value of the master version from which the content was derived. This unexpected behavior wasn't mentioned in the API documentation and was now changed to more reasonable return values: Method #getMasterVersion returns the version from which the content was derived and method #getMasterVersionNumber returns the numeric version number of that version (positive value).

Please check usages of these methods in your project code and make sure that they match the new behavior. To check whether a derived content has not yet been translated, you can use method ContentObjectSiteAspect#getTranslationState . It will return TranslationState#NOT_LOCALIZED_YET in that case.

(CMS-14121)

Search Results

Table Of Contents