Closed (outdated)
Project:
Select (or other)
Version:
7.x-2.22
Component:
Field widget (non-specific or listed)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 23:02 UTC
Updated:
9 Oct 2021 at 19:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Rory commentedThe same form error appears if working with floats.
The default value of '- Select a value -' should be accepted.
As this is related to default values configured under field settings it might be related to #1494948: Default value isn't selected by default.
Comment #2
danielb commentedconfirmed
Comment #3
danielb commentedComment #5
ashrafabedI was still finding this error in the latest version, so I made this small edit:
select_or_other.field_widget.inc
Comment #6
haydeniv commentedThis will get lost without an active status.
Comment #7
mrfelton commentedPatch to that effect.
Comment #8
haydeniv commentedThis does not apply to the latest dev anymore. Also this should also apply to number_float and number_decimal as well correct?
Comment #9
hydra commentedComment #10
haydeniv commentedCommitted: cd56ce8
Thanks.
Comment #13
troybthompson commentedI'm still having this issue using 7.x-2.22 on a Decimal field and trying to set the default value as "unknown" and the patched code above seems to be there.
Also, when I test it on an integer field in this patch, I get the error:
Notice: Undefined index: value in number_field_validate() (line 137 of /usr/www/users/daedal/socialweb/modules/field/modules/number/number.module).
Notice: Undefined index: value in number_field_is_empty() (line 173 of /usr/www/users/daedal/socialweb/modules/field/modules/number/number.module).
Thoughts?
Comment #14
legolasboComment #16
Anonymous (not verified) commentedReopening.
Using version = "7.x-2.22",: I have the same error as the original issue:
The patched line from #9 is present in the code.
Comment #17
daften commentedClosing as outdated because no activity in a long time and Drupal 7 goes EOL soon. Feel free to re-open if needed.