Closed (fixed)
Project:
Webform
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2007 at 22:53 UTC
Updated:
15 Feb 2008 at 02:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
phillipadsmith commentedAnd, actually, it's only "multiple" selects (and only with more than one submission) -- the select list is working fine.
Comment #2
neruocomp commentedRan into this problem also, could not view results, and fixed it by changing the following. I'm not a developer myself, so not sure if this is valid, but it works for me.
Comment #3
defagordi commentedI have the same Problem, i change the line 172 and 175 of the select.inc to:
It's working only if we dont have a default value for a checkbos option
Comment #4
bdornbush commentedI ran into this bug in 5.x-1.4 and upgraded to 5.x-1.7. The bug is still there, except it is now at line 180.
Comment #5
janv commentedsame prob here as bdornbush
Comment #6
palmstrom commentedHere is patch against 5.x-1.7. It's solving bug bit differently, so It should be ok with default values.
Comment #7
quicksketchThanks for the patch palmstrom, but it seems that it will cause the incorrect values to be selected in the list if the
<option value="">is not the same as the label displayed.I haven't yet been able to reproduce this in the latest dev, can you provide more information about what is necessary to cause the problem?
- Create webform
- Add a select list
- Multiple value
- List box
- Not required
- Options:
One
Option 2
Option Three
- Save webform
- Add submission
- View submission result
Comment #8
summit commentedSubscribing! May be related to: http://drupal.org/node/162948#comment-681797 ?
Greetings,
Martijn
Comment #9
Bodo Maass commentedI just got the same problem with 5.x-1.x-dev.
Steps to reproduce:
Create webform.
Add select list.
Multiple value.
Mandatory.
Enter single option of the form: label|description
set the default value to "label".
Submit form.
Edit results of this submission: this will cause "Fatal error: [] operator not supported for strings in select.inc on line 180
Comment #10
quicksketchThank you Bodo Maass! That's exactly what I needed. I reproduced on both 1.x and 2.x and fixed the problem in both places. You can either upgrade to the latest 1.x to solve the problem or apply this patch to get it working in 1.8. Thanks!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.