-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Fixes issue with not being able to order dropdowns in extra questions #3566
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3566 +/- ##
==========================================
- Coverage 84.91% 82.59% -2.33%
==========================================
Files 292 343 +51
Lines 18838 23205 +4367
Branches 3532 3543 +11
==========================================
+ Hits 15997 19167 +3170
- Misses 1721 2922 +1201
+ Partials 1120 1116 -4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be done a different way, I'm afraid!
0275a97
to
e536dd0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change looks good, test looks good, thanks, only issue is the ID referenced in the changelog :)
Raised by Peterborough but an FMS issue as, when creating dropdowns for extra questions on categories, the dropdown options are sorted on index number, but this has not been a numeric sort so looks random to the user. The order of dropdown items now remains in the order they are in the creation/editing screen. Adds a regression test. mysociety/societyworks#2511
e536dd0
to
6ccfa71
Compare
Ordering of dropdown list options is now sorted numerically on the index position. This means the order will be that expected by the user when creating the options.
https://github.com/mysociety/societyworks/issues/2511