From 607b1305772ab820953e3529a5e1a3785f861e1b Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 14 Sep 2007 23:45:51 -0400 Subject: [PATCH] =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show the versions for an app if they have the same queue status. Instead of checking whether the version is un-queued, check if it has the same status as the application. This is needed to allow users to edit a queued application they have submitted. Modify the function name to reflect the change. --- include/application.php | 2 +- include/version.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/application.php b/include/application.php index e8e276c..57a1345 100644 --- a/include/application.php +++ b/include/application.php @@ -752,7 +752,7 @@ class Application { echo html_frame_end("For more details and user comments, view the versions of this application."); // display versions - Version::display_approved($this->aVersionsIds); + Version::displayList($this->aVersionsIds); // display bundle display_bundle($this->iAppId); diff --git a/include/version.php b/include/version.php index cf9b347..fab4ff0 100644 --- a/include/version.php +++ b/include/version.php @@ -1055,7 +1055,7 @@ class version { } // display the versions - function display_approved($aVersionsIds) + function displayList($aVersionsIds) { if ($aVersionsIds) { @@ -1098,7 +1098,8 @@ class version { foreach($aVersionsIds as $iVersionId) { $oVersion = new Version($iVersionId); - if ($oVersion->sQueued == 'false') + $oApp = new application($oVersion->iAppId); + if ($oVersion->sQueued == $oApp->sQueued) { // set row color $bgcolor = ($c % 2 == 0) ? "color0" : "color1";