From f43fb782f48cc5bf3b6eae7479c02627d8f90a42 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 8 Mar 2007 17:19:00 +0000 Subject: [PATCH] - Changed Manage Revisions screen to order revisions by descending revision date. --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/AssetVersioning.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index d7b843dae..3840366ad 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -10,6 +10,8 @@ - fix: Linking Pages - Enhanced HTTP caching directives. - Fixed a problem with JSON formatting in spectre config transaction. + - Changed Manage Revisions screen to order revisions by descending revision + date. - fix: Fixing bad link on the Event page to the search engine. Added a new Event template variable called urlSearch to handle it. (perlDreamer Consulting, LLC) - fix: Set default groupIdEditEvent to groupIdEdit during upgrade (perlDreamer Consulting, LLC) diff --git a/lib/WebGUI/AssetVersioning.pm b/lib/WebGUI/AssetVersioning.pm index 16ac0812f..d682918ab 100644 --- a/lib/WebGUI/AssetVersioning.pm +++ b/lib/WebGUI/AssetVersioning.pm @@ -456,7 +456,7 @@ sub www_manageRevisions { $i18n->get('revision date'), $i18n->get('revised by'), $i18n->get('tag name'); my $sth = $self->session->db->read("select assetData.revisionDate, users.username, assetVersionTag.name,assetData.tagId from assetData left join assetVersionTag on assetData.tagId=assetVersionTag.tagId left join users on assetData.revisedBy=users.userId - where assetData.assetId=".$self->session->db->quote($self->getId)); + where assetData.assetId=? order by revisionDate desc", [$self->getId]); while (my ($date,$by,$tag,$tagId) = $sth->array) { $output .= '' .$self->session->icon->delete("func=purgeRevision;revisionDate=".$date,$self->get("url"),$i18n->get("purge revision prompt"))