Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions DocDB/cgi/RevisionHTML.pm
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Name: $RCSfile$
# Description:
# Revision: $Revision$
# Modified: $Author$ on $Date$
# Name: RevisionHTML.pm
# Description: Produce HTML related to information on document revisions
#
# Author: Eric Vaandering (ewv@fnal.gov)
#
# Modified: Eric Vaandering (ewv@fnal.gov)

# Copyright 2001-2014 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2018 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand Down Expand Up @@ -472,7 +470,8 @@ sub OtherVersionLinks {
require "Sorts.pm";

my ($DocumentID,$CurrentVersion) = @_;
my @RevIDs = reverse sort RevisionByVersion &FetchRevisionsByDocument($DocumentID);
my @RevIDs = reverse sort RevisionByVersion &FetchRevisionsByDocument($DocumentID);
my $DocRevID = $RevIDs[0];

my $HTML = "";
$HTML .= "<div id=\"OtherVersions\">\n";
Expand Down