Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item9970: Cannot save the value 0 in a formfield

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine    
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 CopyrightStatement. Creative Commons License