You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.) Create objects with the double quotes in one folder until second page is created
2.) Create some more elements on the second page
3.) Sort objects by key
4.) Open element on the second page, reload admin and try to click "Show in tree" inside the object. For example: Überschuhspender "Hygomat Classic"
5.) Pimcore loads the element of the first page and does not make any request for the second page, the element is not shown in the tree.
There is function getDirectionForElementsSortedByKey in file treenodelocator.js:
The firstElementChild.data.text.toUpperCase() and lastElementChild.data.text.toUpperCase() returns " instead of double quotes, so the length check is wrong, so the method return 0 instead of 1 and request for the second page is not made anymore
If i decode the entity to double quotes the element is correct selected in the tree.
Maybe there is better way to replace entity without creating textarea.
Hope the description helps to reproduce the bug.
I also don't know if bug appear with other special characters in object key.
If you don't want to fix the bug in pimcore x, you can move the issue or create the new one in classic bundle repo: https://github.com/pimcore/admin-ui-classic-bundle/tree/1.x
Actual Behavior
I open the the object and click to show it in the tree, the object is not selected, because second page is not loaded
Expected Behavior
I open the the object and click to show it in the tree, the object is shown in the tree
The text was updated successfully, but these errors were encountered:
@ascheider Sorry I am not able to reproduce the bug in pimcore 11. For me the double quotes are correct in the string. Could you please try it with the last version of the admin-ui-classic-bundle? Thanks
Pimcore version
10.2 and 11
Steps to reproduce
1.) Create objects with the double quotes in one folder until second page is created
2.) Create some more elements on the second page
3.) Sort objects by key
4.) Open element on the second page, reload admin and try to click "Show in tree" inside the object. For example: Überschuhspender "Hygomat Classic"
5.) Pimcore loads the element of the first page and does not make any request for the second page, the element is not shown in the tree.
There is function getDirectionForElementsSortedByKey in file treenodelocator.js:
admin-ui-classic-bundle/public/js/pimcore/treenodelocator.js
Line 469 in 82aa7a8
The firstElementChild.data.text.toUpperCase() and lastElementChild.data.text.toUpperCase() returns " instead of double quotes, so the length check is wrong, so the method return 0 instead of 1 and request for the second page is not made anymore
If i decode the entity to double quotes the element is correct selected in the tree.
Maybe there is better way to replace entity without creating textarea.
Hope the description helps to reproduce the bug.
I also don't know if bug appear with other special characters in object key.
If you don't want to fix the bug in pimcore x, you can move the issue or create the new one in classic bundle repo: https://github.com/pimcore/admin-ui-classic-bundle/tree/1.x
Actual Behavior
I open the the object and click to show it in the tree, the object is not selected, because second page is not loaded
Expected Behavior
I open the the object and click to show it in the tree, the object is shown in the tree
The text was updated successfully, but these errors were encountered: