Item9970: Cannot save the value 0 in a formfield

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.2
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: KennethLavrsen
Waiting For:
Last Change By: KennethLavrsen
An old bug is back. I think for the 3rd time at least

You cannot save the value 0 in a formfield.

If you put 0 in a formfield, the saved value is nothing.

This is a very serious error that probably means I will have to spend hours at work going through all saves that had 0's in them and restore the 0.

Very annoying. It was introduced in 1.1 again. It works in 1.0.

Need this fixed in 1.1.2

-- KennethLavrsen - 07 Nov 2010

Olivier led me to the file with the bug. Thanks

Bug is fixed but I want a unit test to catch this because this bug comes back again and again and again

-- KennethLavrsen - 07 Nov 2010

I have added unit tests that catches the same bug. I added at two levels. At save level which catches this one. And a lower level one to prevent adding the bug later to meta code.

-- KennethLavrsen - 07 Nov 2010
 
Topic revision: r11 - 10 Nov 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy