mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
oc: Set right container in dbFolder when moving a folder
The path attribute from SOGoCacheGCSFolder is properly updated in the database but not when returning from path message as the container is the old one.
This commit is contained in:
1 parent
2dcb8fa732
commit
57d591c427
5 files changed
+16
-2
No files matched your search
@@ -49,6 +49,8 @@
|
||||
andSortOrderings: (NSArray *) sortOrderings;
|
||||
|
||||
- (void) changePathTo: (NSString *) newPath;
|
||||
- (void) changePathTo: (NSString *) newPath
|
||||
intoNewContainer: (id) newContainer;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -308,6 +308,14 @@ Class SOGoCacheGCSObjectK = Nil;
|
||||
[super changePathTo: newPath];
|
||||
}
|
||||
|
||||
- (void) changePathTo: (NSString *) newPath intoNewContainer: (id) newContainer
|
||||
{
|
||||
[self changePathTo: newPath];
|
||||
container = newContainer;
|
||||
if ([self doesRetainContainer])
|
||||
[container retain];
|
||||
}
|
||||
|
||||
// - (NSArray *) toOneRelationshipKeysMatchingQualifier: (EOQualifier *) qualifier
|
||||
// andSortOrderings: (NSArray *) sortOrderings
|
||||
// {
|
||||
|
||||
@@ -82,6 +82,8 @@
|
||||
|
||||
- (BOOL) isInPublicZone;
|
||||
|
||||
- (BOOL) doesRetainContainer;
|
||||
|
||||
/* accessors */
|
||||
|
||||
- (void) setContext: (WOContext *) newContext;
|
||||
|
||||
Reference in new issue
Block a user