mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.1.N (5.1.1) to HEAD (5.2)
122216 rneamtu: Merged 5.0.N (5.0.4) to 5.1.N (5.1.1) 122101 cturlica: Merged V4.2-BUG-FIX (4.2.7) to 5.0.N (5.0.4) 122078 amukha: MNT-15654: Un-sharing updates the modified properties of a file - Disabled audit during unshare. - Added JUnit test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@123657 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2014 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2016 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -535,9 +535,19 @@ public class QuickShareServiceImpl implements QuickShareService, NodeServicePoli
|
||||
{
|
||||
logger.warn("SharedId mismatch: expected="+sharedId+",actual="+nodeSharedId);
|
||||
}
|
||||
|
||||
nodeService.removeAspect(nodeRef, QuickShareModel.ASPECT_QSHARE);
|
||||
|
||||
|
||||
// Disable audit to preserve modifier and modified date
|
||||
// And not to create version
|
||||
// see MNT-15654
|
||||
behaviourFilter.disableBehaviour(nodeRef, ContentModel.ASPECT_AUDITABLE);
|
||||
try
|
||||
{
|
||||
nodeService.removeAspect(nodeRef, QuickShareModel.ASPECT_QSHARE);
|
||||
}
|
||||
finally
|
||||
{
|
||||
behaviourFilter.enableBehaviour(nodeRef, ContentModel.ASPECT_AUDITABLE);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}, tenantDomain);
|
||||
|
Reference in New Issue
Block a user