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

Single Page Selection: Selecting current page not possible #7333

Open
FlxRobole opened this issue Mar 28, 2024 · 0 comments
Open

Single Page Selection: Selecting current page not possible #7333

FlxRobole opened this issue Mar 28, 2024 · 0 comments
Labels
Bug Error or unexpected behavior of already existing functionality

Comments

@FlxRobole
Copy link
Contributor

Q A
Sulu Version 2.5
PHP Version 8.2.17

Actual Behavior

For content type single_page_selection it is not possible to select the currently active page as that page will always be disabled. Explicitly adding <param name="item_disabled_condition" value="" /> to <params> does not change this behaviour either.

Expected Behavior

ANY page should be selectable unless "item_disabled_condition" says the opposite.

Steps to Reproduce

  1. Add
<property name="parent_page" type="single_page_selection">
            <meta>
                <title lang="en">(Parent) page</title>
            </meta>

            <params>
                <param name="item_disabled_condition" value="" />
            </params>
        </property>

to a page template.

  1. Add a new page, choose the template with the defined property, and save.
  2. Try to select the currently saved page in the Single Page Selection.
@FlxRobole FlxRobole added the Bug Error or unexpected behavior of already existing functionality label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant