Skip to content

Commit

Permalink
LPS-66705 SF - ensure we reset the previous value
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocamarero authored and brianchandotcom committed Aug 24, 2016
1 parent a5cb169 commit 9010bf7
Showing 1 changed file with 9 additions and 6 deletions.
Expand Up @@ -7728,13 +7728,16 @@ protected void updateDDMStructurePredefinedValues(

boolean indexingEnabled = serviceContext.isIndexingEnabled();

serviceContext.setIndexingEnabled(false);

ddmStructureLocalService.updateStructure(
serviceContext.getUserId(), ddmStructureId, ddmForm,
ddmStructure.getDDMFormLayout(), serviceContext);
try {
serviceContext.setIndexingEnabled(false);

serviceContext.setIndexingEnabled(indexingEnabled);
ddmStructureLocalService.updateStructure(
serviceContext.getUserId(), ddmStructureId, ddmForm,
ddmStructure.getDDMFormLayout(), serviceContext);
}
finally {
serviceContext.setIndexingEnabled(indexingEnabled);
}
}

protected void updatePreviousApprovedArticle(JournalArticle article)
Expand Down

0 comments on commit 9010bf7

Please sign in to comment.