Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
entering a nonnumeral value to an integer field
results in an empty field without any validation error,
it jast says: %start was changed to %value; after savig the content .(and value is an empty string)
documents in function number_integer_validate() (number.module line 476) says: // No reason to make this an error, just need to inform user what has changed.
but why? It is a validation error so why we should save an emty field to database? setting a validation error makes user to enter a correct number.
float and desimal fields also have this problem.
Comment | File | Size | Author |
---|---|---|---|
#6 | validation-02.patch | 2.8 KB | abbasmousavi |
#3 | validation.patch | 1.97 KB | abbasmousavi |
Comments
Comment #1
abbasmousavi CreditAttribution: abbasmousavi commentedAnother similar issue is reported in http://drupal.org/node/143697 (patch)
also in
http://drupal.org/node/133984 (patch)
http://drupal.org/node/115632
Comment #2
abbasmousavi CreditAttribution: abbasmousavi commentedComment #3
abbasmousavi CreditAttribution: abbasmousavi commentedthe patch fixes the problem for decimal, float and integer fields.
Comment #4
abbasmousavi CreditAttribution: abbasmousavi commentedComment #5
yched CreditAttribution: yched commentedTrying to identify critical bugs blocking an RC.
This one, although important, is not a blocker.
Also, attached patch isn't in the proper format used or drupal.org - see http://drupal.org/patch/create
Comment #6
abbasmousavi CreditAttribution: abbasmousavi commentedI have updated the patch style to unified.
Comment #7
abbasmousavi CreditAttribution: abbasmousavi commentedthis patch is agaist 6.x-2.0-rc2 version
Comment #8
abbasmousavi CreditAttribution: abbasmousavi commentedComment #9
KarenS CreditAttribution: KarenS commentedI updated this to use the same text as before for the error messages, except for the 'value has been changed to value2' part.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.