Join GitHub today
acts_as_list index starts from 1 #7785
(Identified in older version of spree . Fix made to solidus fork at solidusio/solidus@ad40374 )
acts_as_list has top_of_list defaulted as 1 - Source: https://github.com/swanandp/acts_as_list/blob/master/lib/acts_as_list/active_record/acts/list.rb#L38
Steps to reproduce the Issue:
What is happening in the frontend?
This fix will not modify existing positions, but will only fix those resources for new updates.
Another solution could be to set the configuration for all models which use acts_as_list to top_of_list: 0 which could be an alternative solution which fixes this issue from re-occurring in the first place.