Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete an empty item-set occurrence #7937

Open
alansemenov opened this issue Oct 9, 2024 · 0 comments
Open

Can't delete an empty item-set occurrence #7937

alansemenov opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@alansemenov
Copy link
Member

  1. Create a part that uses the descriptor shown below.
  2. Add the part to a page and add a few occurrences (the amount doesn’t seem to matter) with text in each field.
  3. In one of the added occurrences, delete values in all of the text fields.
  4. Click “Apply”
  5. Refresh the page.
  6. Attempt to delete the item with the empty text fields
  7. Click “Mark as ready”
  8. The item re-appears.
<part xmlns="urn:enonic:xp:model:1.0">
    <display-name>Trekkspill</display-name>
    <form>
        <item-set name="accordion">
            <label>Trekkspill</label>
            <occurrences minimum="2" maximum="0"/>
            <items>
                <input name="title" type="TextLine">
                    <label>Tittel</label>
                    <occurrences minimum="1" maximum="1"/>
                </input>
                <input name="anchorId" type="TextLine">
                    <label>Ankerid</label>
                    <help-text>Setter inn anker-id som kan legges til etter selve url'en.</help-text>
                    <occurrences minimum="0" maximum="1"/>
                </input>
                <input name="html" type="HtmlArea">
                    <label>Innhold</label>
                    <occurrences minimum="1" maximum="1"/>
                </input>
            </items>
        </item-set>
    </form>
</part>
@alansemenov alansemenov added the Bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants