From b973266b80ff7368ff62e83e363bbb3f087623dc Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 4 Nov 2007 20:29:09 +0000 Subject: [PATCH] Monotone-Parent: 2e52dbc1e2c5415cdba61195bc483d77199d3b9c Monotone-Revision: 3867377ff036971b33104c67e4333772032acb22 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-04T20:29:09 Monotone-Branch: ca.inverse.sogo --- SOPE/GDLContentStore/ChangeLog | 7 +++++++ SOPE/GDLContentStore/GCSFolder.m | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SOPE/GDLContentStore/ChangeLog b/SOPE/GDLContentStore/ChangeLog index a1072b1a9..a76a21ab2 100644 --- a/SOPE/GDLContentStore/ChangeLog +++ b/SOPE/GDLContentStore/ChangeLog @@ -1,3 +1,10 @@ +2007-11-04 Wolfgang Sourdeau + + * GCSFolder.m ([GCSFolder -writeContent:toName:baseVersion:]): the + test for the improvement below was wrong, we want to test the + value of the column ('0' or null) instead of whether it is null or + filled. + 2007-10-29 Wolfgang Sourdeau * GCSFolder.m ([GCSFolder -writeContent:toName:baseVersion:]): diff --git a/SOPE/GDLContentStore/GCSFolder.m b/SOPE/GDLContentStore/GCSFolder.m index c423d5f48..ac0495fd0 100644 --- a/SOPE/GDLContentStore/GCSFolder.m +++ b/SOPE/GDLContentStore/GCSFolder.m @@ -582,7 +582,7 @@ static GCSStringFormatter *stringFormatter = nil; isNewRecord = [storedVersion isNotNull] ? NO : YES; if (!isNewRecord) { - if ([[self deletionOfContentWithName:_name] isNotNull]) + if ([[self deletionOfContentWithName:_name] intValue] > 0) { [self _purgeRecordWithName: _name]; isNewRecord = YES;