make getRevision return revisions in order or revisionDate
This commit is contained in:
parent
e309143bfa
commit
ec569fdd6a
2 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@
|
|||
Veradox)
|
||||
- Fully remove i18n precaching to free up memory (thanks to Matthew Wilson,
|
||||
Veradox)
|
||||
- Wiki page revisions were not in order (perlDreamer Consulting, LLC)
|
||||
|
||||
7.3.11
|
||||
- Added an option for enabling coverage tests to testCodebase.pl.
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ sub getRevisions {
|
|||
$statusClause = " and status=".$self->session->db->quote($status);
|
||||
}
|
||||
my @revisions = ();
|
||||
my $rs = $self->session->db->read("select revisionDate from assetData where assetId=".$self->session->db->quote($self->getId).$statusClause);
|
||||
my $rs = $self->session->db->read("select revisionDate from assetData where assetId=".$self->session->db->quote($self->getId).$statusClause. " order by revisionDate desc");
|
||||
while (my ($version) = $rs->array) {
|
||||
push(@revisions, WebGUI::Asset->new($self->session, $self->getId, $self->get("className"), $version));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue