Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2010 at 19:46 UTC
Updated:
18 Jun 2010 at 18:30 UTC
When you make a field of type List (Numeric), the data is stored in a database field of type unsigned int. This means that negative values can not be saved in this list, for instance to create a classic Drupal weight field from -20 to 20. If you try to save a negative value you get a big fat PDO error.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| unsigned_numeric_list.patch | 831 bytes | gdd |
Comments
Comment #1
gddComment #2
yched commentedmakes sense.
Comment #3
dries commentedCommitted to CVS HEAD. Moving this to the head2head project.
Comment #4
dries commentedComment #5
David_Rothstein commentedThe Head2Head issue is here: #818530: Head2Head update for numeric list fields no longer being unsigned