Skip to content

Comments

Fix: bug when order value is zero#260

Open
ibaguio wants to merge 2 commits intojazzband:masterfrom
ibaguio:fix/order_key_zero_bug
Open

Fix: bug when order value is zero#260
ibaguio wants to merge 2 commits intojazzband:masterfrom
ibaguio:fix/order_key_zero_bug

Conversation

@ibaguio
Copy link

@ibaguio ibaguio commented Mar 15, 2023

We don't explicitly disallow zero as a value for the ordering field. This assumption comes from the fact that we allow non-positive integers as values, thus, zero is also allowed.

When the value of the ordering field is zero, the save method creates a new value, which is not the wanted behavior.

ibaguio added 2 commits March 15, 2023 11:52
Bug: when order value is zero, a new order value is generated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant