Closed (fixed)
Project:
HTML5 Tools
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2011 at 19:33 UTC
Updated:
5 May 2012 at 04:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
ericduran commentedYea, I thought we fix this. A while ago :-/
Comment #2
ericduran commentedHmm, I haven't look into this yet. But I'm pretty sure we pass in the presicion of the field when being used in field ui. Don't we?
Moving this to critical since is the only bug we have open.
Comment #3
Snugug commentedI haven't looked at this in a while, but will double check to make sure that isn't actually what's going on.
Comment #4
berdirCan confirm that this isn't working.
That's how the field looks for us:
Looking at _numberfield_html5_tools_field_widget_form(), it does use the precision to calculate #size and #maxlength but nothing else.
Attaching a patch that seems to work for me. The value for scale 10 then actually looks like 1.0E-10 but that seems to be accepted by Chrome at least. Stepping down works fine, Stepping up is somehow borked, but that might be Chrome's problem (it works for 2-3 steps but then simply stops, no matter what the value is).
Comment #5
ericduran commentedThanks Everyone.
This is now fixed with proper commit credit.
--
http://drupalcode.org/project/html5_tools.git/commit/39d8e8b