Went through the issue list and quite a bit of Google-ing, but found nothing on this one. I have a select list in Webform (Drupal 6) set to multiple, and coded with key|value pairs as follows:
0|01. a
1|02. b
2|03. c
3|04. d
4|05. e
5|06. f
6|07. g
7|08. h
8|09. h
9|10. i
If the user selects all items, it shows up in the email confirmation like this, which is correct:
- 01. a
- 02. b
- 03. c
- 04. d
- 05. e
- 06. f
- 07. g
- 08. h
- 09. h
- 10. i
But if I go to twenty items, it resorts the results in the email:
Code:
0|01. a
1|02. b
2|03. c
3|04. d
4|05. e
5|06. f
6|07. g
7|08. h
8|09. h
9|10. i
10|11. j
11|12. k
12|13. l
13|14. m
14|15. n
15|16. o
16|17. p
17|18. q
18|19. r
19|20. s
Email results:
- 01. a
- 02. b
- 10. j
- 11. k
- 12. l
- 13. m
- 14. n
- 15. o
- 16. p
- 17. q
- 18. r
- 19. s
- 03. c
- 20. t
- 21. u
- 22. v
- 04. d
- 05. e
- 06. f
- 07. g
- 08. h
- 09. h
- 10. i
Is it sorting based on the value and not the key? I have tried several different ways of "numbering" the values, but nothing works. If it's sorting based on the key, then I'm stumped, or forgetting my binary 101 rules.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot1.png | 36.73 KB | BruceDawson |
| #8 | Screenshot2.png | 17.28 KB | BruceDawson |
Comments
Comment #1
quicksketchThanks for the report. Webform really shouldn't be "sorting" on either the key or the value, it should be using the order of the options as specified in the select list component no matter what. I haven't confirmed this issue, but for now I'm moving this to a bug report.
Comment #2
quicksketchI can't reproduce this issue, do you have any other Webform-related modules installed? Webform Validation, Select or Other..., etc?
Comment #3
broyhill commentedNo I don't have any of the Webform-related modules installed. I wonder if installing Select (or Other) might help, or Options Element?
Comment #4
quicksketchNeither Select or Other nor Options Element should have any effect on the e-mail. Webform's building of the select list options is done separately of those modules (and those modules have no effect at all on e-mail output, just the form display or component editing).
Perhaps this is a database (sorting) issue? What database system and version are you running?
Comment #5
broyhill commentedmySQL 5.0.77 thanks
Comment #6
quicksketchI haven't been able to reproduce this problem still. Are you still experiencing it on the latest release (3.16)?
Comment #7
BruceDawson commentedI am experiencing this with D7.23 and webform 7.x-3.19. Note that I have a number of Ubercart modules loaded , but can't tell if this is effecting this or not. I'm using MySQL 5.1.70-0ubuntu0.10.04.1 and Apache/2.2.14 (Ubuntu).
Comment #8
BruceDawson commentedThis is the order they're in the edit window (Screenshot1.png), and the order they appear in the email (Screenshot2.png).
Comment #9
BruceDawson commentedComment #10
quicksketch@BruceDawson have you overridden the theme_webform_display_select() function in your template.php file by chance? That function is responsible for printing out values both in the results pages and in the e-mails. I think this problem was solved long-ago, but if that theme function has been overridden, your theme's version may still contain the problem.
In any case, this is still minor in the larger scope of things.
Comment #11
danchadwick commentedAs per #10.
Version 7.x-3.x is receiving critical bug fixes only.