Version: 1.6 RC1 (using KDE KDE 3.5.4) Installed from: Gentoo Packages Compiler: gcc 3.4.6 Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9 OS: Linux If you add a checkbox that points to a Yes/No field that has a default value (Yes in my case) the default value is not accepted - when you attempt to save it complains that the field must have a value.
True if the field is declared as "required". Fixing...
SVN commit 593059 by staniek: Forms - fixed bug #134976: Yes/No field default value does not work properly (for required field: if you add a checkbox that points to a Yes/No field that has a default value the default value is not accepted) CCMAIL:134976-done@bugs.kde.org M +2 -2 kexitableviewdata.cpp --- branches/koffice/1.6/koffice/kexi/widget/tableview/kexitableviewdata.cpp #593058:593059 @@ -611,11 +611,11 @@ return true; } -//get a new value (of present in the buffer), or the old one, otherwise +//get a new value (if present in the buffer), or the old one, otherwise //(taken here for optimization) #define GET_VALUE if (!val) { \ val = m_cursor \ - ? m_pRowEditBuffer->at( *it_f.current()->columnInfo, false /* !useDefaultValueIfPossible */ ) \ + ? m_pRowEditBuffer->at( *it_f.current()->columnInfo, true /* useDefaultValueIfPossible */ ) \ : m_pRowEditBuffer->at( *f ); \ if (!val) \ val = &(*it_r); /* get old value */ \
You need to log in before you can comment on or make changes to this bug.