SVN commit 762477 by staniek:
A fix for data editing
- When a default value is specified for an field with
'required' flag,
it was not only applied when a new row is created,
but also when an existing row is edited,
thus overwriting the existing value.
CCMAIL:155899-done bugs.kde.org
CCMAIL:kexi kde.org
M +1 -1 kexitableviewdata.cpp
---
branches/koffice/1.6/koffice/kexi/widget/tableview/kexitable
viewdata.cpp #762476:762477
 -628,7
+628,7 
//(taken here for optimization)
#define GET_VALUE if (!val) {
val = m_cursor
- ? m_pRowEditBuffer->at(
*it_f.current()->columnInfo, true /*
useDefaultValueIfPossible */ )
+ ? m_pRowEditBuffer->at(
*it_f.current()->columnInfo, (*it_r).isNull() /*
useDefaultValueIfPossible */ )
: m_pRowEditBuffer->at( *f );
if (!val)
val = &(*it_r); /* get old value */
_______________________________________________
Kexi mailing list
Kexi kde.org
https://ma
il.kde.org/mailman/listinfo/kexi
|