mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Prevent unwanted audit entries appearing when updating the records
This commit is contained in:
@@ -362,7 +362,9 @@ public class UpdateRecordScheduleGet extends AbstractWebScript implements Record
|
||||
{
|
||||
int recordCount = 0;
|
||||
|
||||
behaviourFilter.disableBehaviour(recordFolder);
|
||||
behaviourFilter.disableBehaviour(ASPECT_FILE_PLAN_COMPONENT);
|
||||
try
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.info("Checking folder: " + recordFolder);
|
||||
@@ -388,12 +390,11 @@ public class UpdateRecordScheduleGet extends AbstractWebScript implements Record
|
||||
{
|
||||
logger.info("updating record: " + record);
|
||||
}
|
||||
behaviourFilter.disableBehaviour(record);
|
||||
|
||||
// update record disposition information
|
||||
dispositionService.updateNextDispositionAction(record, schedule);
|
||||
innerRecordCount++;
|
||||
behaviourFilter.enableBehaviour(record);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,8 +402,13 @@ public class UpdateRecordScheduleGet extends AbstractWebScript implements Record
|
||||
return innerRecordCount;
|
||||
}
|
||||
});
|
||||
|
||||
nodeService.addAspect(recordFolder, ASPECT_DISPOSITION_PROCESSED, null);
|
||||
behaviourFilter.enableBehaviour(recordFolder);
|
||||
}
|
||||
finally
|
||||
{
|
||||
behaviourFilter.enableBehaviour(ASPECT_FILE_PLAN_COMPONENT);
|
||||
}
|
||||
return recordCount;
|
||||
}
|
||||
}, false, true);
|
||||
|
Reference in New Issue
Block a user