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
Describe the bug
When using the entity picker against a doc type property, selecting the entities and pulling through the IEnumerable of entities in code, it isn't giving us a list of entities in the same order as per how they are selected in the content management section of the backoffice. It appears they're just being brought through as per their default order in the custom table.
Looking in the umbracoPropertyData table, it appears the property value is being stored as an integer comma-delimeted array, and in the correct order.
I've managed to work around this for the time being with some dirty code to look up the raw int array in the umbracoPropertyData table and reordering the IEnumerable based on the order of the Id's within the array. Ideally, I shouldn't need to do this.
Steps To Reproduce
Steps to reproduce the behavior:
Ensure there's at least one repository with data
Apply the entity picker against a doc type property
Add items via the content section in a scattered order
Pull in the selected items via code which should give an IEnumerable<entity> object, loop through the selected items to be shown the items in the wrong order from how they were selected
Expected behavior
The IEnumerable<entity> should match the order of the integer comma-delimeted array.
Environment (please complete the following information):
Umbraco Version: 12.0.1
Product Version: Konstrukt 1.6.5
The text was updated successfully, but these errors were encountered:
So in this example, Features is the property with the entity picker. So if the custom table had features 1 - 10 in that order, and I only selected features 7, 3, 9, & 1 then what instead gets returned is 1, 3, 7 & 9 when I'd imagine what we should get is the same order in which they were selected.
Describe the bug
When using the entity picker against a doc type property, selecting the entities and pulling through the IEnumerable of entities in code, it isn't giving us a list of entities in the same order as per how they are selected in the content management section of the backoffice. It appears they're just being brought through as per their default order in the custom table.
Looking in the umbracoPropertyData table, it appears the property value is being stored as an integer comma-delimeted array, and in the correct order.
I've managed to work around this for the time being with some dirty code to look up the raw int array in the umbracoPropertyData table and reordering the IEnumerable based on the order of the Id's within the array. Ideally, I shouldn't need to do this.
Steps To Reproduce
Steps to reproduce the behavior:
IEnumerable<entity>
object, loop through the selected items to be shown the items in the wrong order from how they were selectedExpected behavior
The
IEnumerable<entity>
should match the order of the integer comma-delimeted array.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: