Skip to content

Commit

Permalink
Does not return working copy information when serializing Portal in
Browse files Browse the repository at this point in the history
Plone 5.2
  • Loading branch information
wesleybl committed Oct 8, 2024
1 parent 7c2ba19 commit 7e2f686
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plone/restapi/serializer/dxcontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from plone.dexterity.interfaces import IDexterityContainer
from plone.dexterity.interfaces import IDexterityContent
from plone.dexterity.utils import iterSchemata
from plone.restapi import HAS_PLONE_6
from plone.restapi.batching import HypermediaBatch
from plone.restapi.deserializer import boolean_value
from plone.restapi.interfaces import IFieldSerializer
Expand Down Expand Up @@ -42,7 +43,7 @@


def update_with_working_copy_info(context, result):
if WorkingCopyInfo is not None:
if WorkingCopyInfo is not None and HAS_PLONE_6:
baseline, working_copy = WorkingCopyInfo(context).get_working_copy_info()
result.update({"working_copy": working_copy, "working_copy_of": baseline})

Expand Down

0 comments on commit 7e2f686

Please sign in to comment.