Skip to content

Commit

Permalink
#12716 something like this - unteseted
Browse files Browse the repository at this point in the history
  • Loading branch information
wezell committed Nov 17, 2017
1 parent b43b999 commit 82f4a8e
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,19 +655,13 @@ public static java.util.List getParentsOfClass(Inode p, Class c) {
*
*/
private static void updateHTMLPageVersionTS(String id) throws DotDataException, DotSecurityException {
Identifier identifier = APILocator.getIdentifierAPI().find(id);
List<Contentlet> allContentletVersions = APILocator.getContentletAPI()
.findAllVersions(identifier, APILocator.getUserAPI().getSystemUser(), false);

for (Contentlet contentlet : allContentletVersions) {
ContentletVersionInfo versionInfo = APILocator.getVersionableAPI()
.getContentletVersionInfo(id, contentlet.getLanguageId());
List<ContentletVersionInfo> infos = APILocator.getVersionableAPI().findContentletVersionInfos(id);
for (ContentletVersionInfo versionInfo : infos) {
if(versionInfo!=null) {
versionInfo.setVersionTs(new Date());
APILocator.getVersionableAPI().saveContentletVersionInfo(versionInfo);
}
}

}

/**
Expand Down

0 comments on commit 82f4a8e

Please sign in to comment.