Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.7
Component:
number.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2008 at 15:03 UTC
Updated:
11 Jan 2012 at 16:26 UTC
This problem is related to http://drupal.org/node/108302. By adding the code to strip characters other that numbers and period it causes a problem when editing a node with large numbers of that display in the form 1.234e+06. This is how the number shows in the form but after stripping characters it gets saved as 1.23406. Problem starts with number_widget() simply using items[n]['value'] for the default value. My solution was to call format_number on the value but I am not sure how well that works in general.
Comments
Comment #1
karens commentedThe D5 version is no longer being supported. Sorry.