I need empty value for fields, becouse when I try to save empty field, CCK save '' (empty string) for text and 0 for numbers. As long as '' is acceptable becouse it more or less equal to NULL, 0 value is very uncomfortable. For example, if we have price of some product and if this price is not known, in any case we have 0 price, whitch is senseless. Other example is that 0 is neutral element of addition, but not neutral for multiplication.

Comments

mki’s picture

Second issue is that when we using widgets and field is not requiered, default selected value should be NULL, becouse if user won't put value, he don't must change widgets.

mki’s picture

See also:

mki’s picture

For number.module done very well: Commit #46076 by yched and Commit #46078 by yched. Thanks yched!

The same should be commit to other CCK modues.

yched’s picture

Status: Active » Fixed

I think these "empty / NULL" issues should be fixed now for "core CCK" field modules (I might have to check optionwidget, though).

I'm closing this, please reopen if more bugs show up.

Anonymous’s picture

Status: Fixed » Closed (fixed)