enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

Change Duplicate operation to take into account includeChildren property #6267

Closed alansemenov closed 6 years ago

alansemenov commented 6 years ago

content/duplicate API now takes an array of contentIds and duplicates them, always duplicating the child content as well.

After https://github.com/enonic/xp/issues/6259 and https://github.com/enonic/lib-admin-ui/issues/508 request to API contains boolean property includeChildren indicating whether child items should be duplicated for this item or not. Change the code of duplicate operations to take this value into account.

vbradnitski commented 6 years ago

pushed to #6260