pix-digital / pixSortableBehaviorBundle

Offers a sortable feature for your Symfony2 admin listing
MIT License
46 stars 78 forks source link

totally incorrect reordering #81

Closed ivanbrykov closed 1 year ago

ivanbrykov commented 6 years ago

After playing with this bundle for a bit I ended up with the following picture:

image

Here is how it looks in the DB: image

Initially all items were ordered from 0 to 10. I clicked double arrows couple of times and now I have 3 items with order 10.

mattchete commented 5 years ago

I have the same problem, tried 1.3, 1.4, 1.5. Have you found a solution ?

Thanks !

ivanbrykov commented 5 years ago

@mattchete our solution was to implement it from scratch using more simplistic approach. Sorry for the bad news.

mattchete commented 5 years ago

Ok, thanks for the answer

BenjiBoy13 commented 5 years ago

@brykov, @mattchete I just faced this error in my app, I fixed it by myself too.

ibasaw commented 4 years ago

@brykov, @mattchete I just faced this error in my app, I fixed it by myself too.

how ?

AjbarAbdelmajid commented 4 years ago

i'm facing the same problem. any solution found ???

ivanbrykov commented 4 years ago

i'm facing the same problem. any solution found ???

We have implemented our own view. There is no workaround for this bug as far as I'm aware.

AjbarAbdelmajid commented 4 years ago

i'm facing the same problem. any solution found ???

We have implemented our own view. There is no workaround for this bug as far as I'm aware.

thanks for the response. is there any other bundle that would do the job

tonyellow commented 4 years ago

Here exactly the same, completely incorrect ordering. Thinking of implementing it myself too if there is no other solution, anybody?

AjbarAbdelmajid commented 4 years ago

Here exactly the same, completely incorrect ordering. Thinking of implementing it myself too if there is no other solution, anybody?

hi we had to override the pixsortablebehavior js that was responsible for firing events and redirect the js ajax to our custom made methods that took care of each entity that had the sorting . the code https://github.com/AjbarAbdelmajid/pixSortableBehaviorBundleCustomReorderingFix . feel free to update it and push back ;)

dmitryuk commented 2 years ago

Sonata admin officially migrated to runroom-packages/sortable-behavior-bundle, try it instead. https://symfony.com/bundles/SonataAdminBundle/current/cookbook/recipe_sortable_listing.html