-
Notifications
You must be signed in to change notification settings - Fork 80
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
Cannot unselect all additional webspaces #598
Comments
It totally make sense for me that this should be an empty array when saved once. We need to test the |
For completion: The problem is that you cannot unselect all options in the additional webspaces multi-select of the article bundle, right? I think that the article bundle will fallback to use the |
It is possible to unselect all options (in the additional webspaces multi-select) in the UI, but |
Yeah that is what I suspected. The I think the correct behaviour would be sending |
Any updates? |
@nnatter @alexander-schranz I think we should not change the behaviour to send |
I definitly see it that a multi select should send a empty array always. If we did build on top of that something we need to have change there the behaviour, that it don't crash when not longer null is. Maybe |
But I don't see the benefit of changing that behaviour. Let's run through this example, imagine empty multi selects send
|
I think the other selection field-types (eg. But yeah, it is possible that we need to adjust some parts of the system to the new behaviour. In the case of the |
Then I would rather adjust the |
This should not happen because the the
To me, it is semantically wrong to use |
@thomaskanzig this should be fixed by #556, but I'll keep this issue open to keep the discussion above alive. |
@luca-rath the provided fix from sulu/SuluArticleBundle#556 seems not to work for production. |
@nnatter any news how this should be fixed? |
@luca-rath @nnatter (@mfehr94 ) The fix in the SuluArticleBundle seems to only work if no In our case the config looks like this: sulu_article:
default_main_webspace: 'main_webspace'
default_additional_webspaces:
- 'webspace_additional_one'
- 'webspace_additional_two' If we save the settings with no selected additional webspaces, it uses the config of the I think that the toggler |
@mfehr94 @thomasduenser Could you please check, if #590 fixes your problem? |
Actual Behavior
When I select a webspace, the article is still displayed for all webspaces.
Expected Behavior
The article should only be displayed in the respective webspace selected.
Steps to Reproduce
On settings tab of article, the main webspace dropdown.
Possible Solutions
On
additionalWebspaces
should be send a multiselectarray
, insteadnull
.The text was updated successfully, but these errors were encountered: