Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Update position on model when re-positioning record (#24997)
When updating the position of a category, the server correctly updates the position in the database, but the response sent back to the client still contains the old position, causing it to "flip back" in the UI when saving. Only reloading the page will reveal the new, correct value. The Positionable concern correctly positions the record and updates the database, but we don't assign the new position to the already instantiated model. This change just assigns self.position after the database update. 😎
- Loading branch information