Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
4.7.x-1.x-dev
Component:
General
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2006 at 11:20 UTC
Updated:
7 Dec 2006 at 13:16 UTC
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
Comment #1
mki commentedSecond 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.
Comment #2
mki commentedSee also:
Comment #3
mki commentedFor 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.
Comment #4
yched commentedI 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.
Comment #5
(not verified) commented