summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-10-02 20:40:24 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-10-03 05:12:54 +0200
commit8dbcd72f83e2317dd40c0fa605fd26b3f6a2616b (patch)
treec9b2f18f699b35c28b2121e66ebd370be6235156
parentff28de400ecf0e367d98a58285f3f82a8e85df6f (diff)
tdf#120245: Accept to insert empty field with 'not null' database constraint
See https://bugs.documentfoundation.org/show_bug.cgi?id=120245#c4 Change-Id: I9ac852a83e0a57c34ef3640bf0fb0e6a3394db63 Reviewed-on: https://gerrit.libreoffice.org/61269 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Jenkins
-rw-r--r--svx/source/form/formcontroller.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 881f1ec84967..f3a10ee3c0da 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -3730,8 +3730,7 @@ sal_Bool SAL_CALL FormController::approveRowChange(const RowChangeEvent& _rEvent
if ( rColInfo.bReadOnly )
continue;
- if ( !rColInfo.xFirstControlWithInputRequired.is() && !rColInfo.xFirstGridWithInputRequiredColumn.is()
- && rColInfo.nNullable != ColumnValue::NO_NULLS )
+ if ( !rColInfo.xFirstControlWithInputRequired.is() && !rColInfo.xFirstGridWithInputRequiredColumn.is() )
{
continue;
}