Skip to content

Commit

Permalink
#31367 fix ftm vtl working and live inode
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Feb 20, 2025
1 parent d5f65f9 commit c657827
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,8 @@ public InputStream writeObject(final VelocityResourceKey key)
throw new ResourceNotFoundException("cannot find content version info for key: " + key);
}

//if time machine is running, we need to force get the latest working version to guarantee the correct rendered content matching the json portion of the response
final ContentletVersionInfo contentletVersionInfo = info.get();
final String inode = (key.mode.showLive && TimeMachineUtil.isNotRunning() )
final String inode = key.mode.showLive
? contentletVersionInfo.getLiveInode()
: contentletVersionInfo.getWorkingInode();

Expand Down

0 comments on commit c657827

Please sign in to comment.