grysk
1
Enonic version: 6.15.5
OS: Windows
In our site config we have added some item-sets, but when editing the list in Content Studio it removed all items in the list.
Steps to reproduce:
- Open site config
- Add 2 or more items in the list
- Apply and verify
- Open site config again
- Delete the first item in the list
- Apply and verify
Expected result: All other items are still present
Actual result: All items are deleted
Note: This also happen if you change the order of the items and delete the original first item.
Alan
2
What version of XP are you on exactly (what is the last number after “6.15.”)? It would also help if you could post contents of your site.xml.
1 Like
Alan
4
In 6.15.6 we fixed a bug related to sequence of properties. Can you try upgrading to that version and verify that you still have the problem?
grysk
5
I get the same issue with 6.15.6.
Alan
6
Can we see your site.xml please?
grysk
7
<?xml version="1.0" encoding="UTF-8"?>
<site>
<filters>
<response-filter name="redirects" order="1"/>
<response-filter name="scriptFilter" order="10"/>
</filters>
<config>
<field-set name="newsCenter">
<label i18n="site.newsCenter.label">News Center</label>
<items>
<input name="newsCenterTarget" type="ContentSelector">
<label i18n="site.newsCenter.target.label">News center page</label>
<description i18n="site.newsCenter.target.description">Sets the newscenter page that all article tags
will link to</description>
<occurrences minimum="0" maximum="1"/>
<config>
<allowPath>${site}/*</allowPath>
<treeMode>true</treeMode>
<showStatus>true</showStatus>
</config>
</input>
</items>
</field-set>
<field-set name="footer">
<label i18n="siteConfig.footer.field">Footer</label>
<items>
<field-set name="footerLeft">
<label i18n="siteConfig.footerLeft.field">Footer: Left column</label>
<items>
<item-set name="buttonLinks">
<label i18n="reusable.buttonLink.label">button link</label>
<occurrences minimum="0" maximum="5"/>
<items>
<input name="target" type="ContentSelector">
<label i18n="reusable.target.label">Link to</label>
<occurrences minimum="1" maximum="1"/>
</input>
<input name="text" type="TextLine">
<label i18n="button.text.label">Button text</label>
<occurrences minimum="1" maximum="1"/>
</input>
</items>
</item-set>
</items>
</field-set>
<field-set name="footerCenter">
<label i18n="siteConfig.footerCenter.field">Footer: Center column</label>
<items>
<input name="centerColumnArea" type="HtmlArea">
<label i18n="footer.centerColumnArea.label">Center footer column area</label>
<occurrences minimum="0" maximum="1"/>
<config>
<exclude>*</exclude>
<include>Bold | Italic | Underline | Link | Macro</include>
</config>
</input>
</items>
</field-set>
<field-set name="footerRight">
<label i18n="siteConfig.footerRight.field">Footer: Right column</label>
<items>
<item-set name="linkList">
<label i18n="reusable.link.label">link</label>
<occurrences minimum="0" maximum="10"/>
<items>
<input name="target" type="ContentSelector">
<label i18n="reusable.target.label">Link to</label>
<occurrences minimum="1" maximum="1"/>
</input>
<input name="text" type="TextLine">
<label i18n="reusable.overwriteTitle.label">Overwrite link title?</label>
<occurrences minimum="0" maximum="1"/>
</input>
</items>
</item-set>
</items>
</field-set>
<field-set name="footerBottom">
<label i18n="siteConfig.footerBottom.field">Footer: Bottom</label>
<items>
<input name="bottomText" type="HtmlArea">
<label i18n="footer.bottomText.label">Bottom text</label>
<occurrences minimum="0" maximum="1"/>
<config>
<exclude>*</exclude>
<include>Bold | Italic | Underline | Link</include>
</config>
</input>
<item-set name="socialMediaList">
<label i18n="reusable.some.link.label">social media link</label>
<description i18n="reusable.some.link.description">Adds a link to one of KLP's social media
accounts</description>
<occurrences minimum="0" maximum="8"/>
<items>
<input name="socialMediaIcon" type="CustomSelector">
<label i18n="someIcon.label">Social media icon</label>
<occurrences minimum="1" maximum="1"/>
<config>
<service>icon-selector</service>
<param value="iconType">some</param>
</config>
</input>
<input name="target" type="TextLine">
<label i18n="socialMedia.target.label">Link to KLP social media page</label>
<description>This should be a complete link to the account page of the corresponding KLP
social media account</description>
<occurrences minimum="1" maximum="1"/>
</input>
</items>
</item-set>
</items>
</field-set>
</items>
</field-set>
<field-set name="addScripts">
<label i18n="siteConfig.scripts.field">Site scripts</label>
<items>
<item-set name="siteScripts">
<label i18n="siteConfig.scripts.label">Script</label>
<items>
<input name="scriptText" type="TextArea">
<label i18n="siteConfig.scripts.area.label">Insert script</label>
<help-text i18n="siteConfig.scripts.area.helpText">Only script tags and it's content will
be added to the DOM.</help-text>
</input>
</items>
<occurrences minimum="0" maximum="0"/>
</item-set>
</items>
</field-set>
</config>
<x-data mixin="menu-item" />
<x-data mixin="show-breadcrumbs" />
<x-data mixin="menu-config" />
</site>
Alan
8
Thank you for helping us reproduce this. The bug is fixed, the fix will be issued with version 6.15.7 which we hope to release next week.
Alan
9
XP 6.15.7 is released today with bugfix for this issue
1 Like