-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in v2.2.4 ? #414
Comments
Didn't we just change the save_new method? It's not supposed to be invoked with updates I think |
Btw, now that I'm looking again it seems that the test @jedie is running is a false negative: in the form data, they are uploading "Chapter One" with position 1 and "Chapter Two" with position 0. Thus, the result containing "Chapter Two" first and "Chapter One" second should be considered correct. |
This is exactly what the browser also send. Or exists the bug in the JavaScript part that adds the field?!? Think the playwright tests should cover this, isn't it? |
It's not a bug, it's how the library works. Even if you change the order of an item in the admin page, "Chapter One" will always have index 0 written in the form field labels, while its position field will change value according to its position. This means that it's the position field to be responsible for determining the position of Chapter One, even if the index is of the item inside the form fields is still 0. |
From an HTML perspective, PS: I've tested the latest version myself and to me it's working as intended |
I seems to me, that v2.2.3 -> v2.2.4 introduces a bug: Adding a new entry to a existing object will add it not always as a new last entry... Sometimes it will be added as the second one.
I found this bug, because a integration tests failed. It looks like:
With v2.2.3 it's correct:
['Chapter One', 'Chapter Two']
With v2.2.4 it's:
['Chapter Two', 'Chapter One']
The text was updated successfully, but these errors were encountered: