Closed (fixed)
Project:
Fraction
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2020 at 13:00 UTC
Updated:
26 May 2020 at 13:04 UTC
Jump to comment: Most recent
If you save a blank value for a fraction, _fraction_decimal_widget_validate takes the blank decimal value, converts it to a fraction (0/1), and then the fraction_field_is_empty() logic does not interpret "0" as empty, and saves the field to the database.
This is similar to #3096236: Clearing a fraction field sets it to zero in 8.x-1.x, and may have actually been a result of the fix that was made in #3005491: Fraction with numerator of 0 is considered empty.
Comments
Comment #2
m.stentaComment #4
m.stentaFixed.