mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge remote-tracking branch 'remotes/origin/feature-2.7/RM-6786_FileCan'tBeDeclaredAsRecord' into feature-2.7/RM-6786_DeclareFileWithRecVersionAsRecord_test_no
This commit is contained in:
@@ -144,8 +144,8 @@ public class VersionRecordAspect extends BaseBehaviourBean
|
|||||||
@Behaviour(kind = BehaviourKind.CLASS, notificationFrequency = NotificationFrequency.FIRST_EVENT)
|
@Behaviour(kind = BehaviourKind.CLASS, notificationFrequency = NotificationFrequency.FIRST_EVENT)
|
||||||
public void beforeAddAspect(NodeRef nodeRef, QName qName)
|
public void beforeAddAspect(NodeRef nodeRef, QName qName)
|
||||||
{
|
{
|
||||||
// if the node is a record the behaviour shouldn't be triggered
|
// if the node is the originating one the behaviour shouldn't be triggered
|
||||||
if (!nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_RECORD))
|
if (!nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_RECORD_ORIGINATING_DETAILS))
|
||||||
{
|
{
|
||||||
//create a new content URL for the version record
|
//create a new content URL for the version record
|
||||||
createNewContentURL(nodeRef);
|
createNewContentURL(nodeRef);
|
||||||
|
Reference in New Issue
Block a user