-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]: pimcore_relations does not accept more than one folder after reload in the back-end. #17046
Comments
Can it be reproduced in the public demo? Any notable JS error in the Developer Tools' Console? |
Hey, no there are no errors. I couldn't find any relations in the demo. Maybe it is already fixed with your version. I will check it. Thanks |
Mhh, i think i have misread the first time, you are using pimcore_relation which is many-to-one, therefore it HAS to be one, while you may want pimcore_relations (NB: plural) if you want to link multiple elements or folders. So probably a visual/UI bug that somehow allows dropping more than one element on the many-to-one? I will double check that. |
My fault, I meant pimcore_relations. So it should accept more than one folder right? |
Ahh ok, all good. So far, it should be working as intended, I didn't find any problem in both editables types and there are no any recent changes from the JS side as well. Maybe try to keep an eye on the Looking forward to any further details and steps on how to reproduce it. |
Here is what I tryed:
{{ pimcore_areablock('content', {
Hope this helps to reproduce it. |
Ahh thank you for the detailed instruction, i am also confirming the issue as reproduce-able. Update: by changing this line (removing the variant constant), it would work
Potential regression from #13233 |
PR #17054 is ready, feel free to review it and give it a try Thank you again for reporting! |
Yes, it actually works fine. Thank you very much for your fast help. |
Pimcore version
11.1.3
Steps to reproduce
Create a relation (doesn't matter if it's a editable dialog box or not). Drag in two folder's and save & publish. Now the relation will show objects of both folders. If you reload the page in the back-end, you will only see the last added folder in the relation. At this moment it will still show objects of both folders. Now if you save & publish again while there is only one folder in the relation, it will only display objects of the last added folder.
Actual Behavior
pimcore_relation only accepts one folder with objects.
Expected Behavior
Should accept more than one folder.
The text was updated successfully, but these errors were encountered: