Alexander Nicolaysen Sørnes <alex@thehandofagony.com>

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.
This commit is contained in:
Chris Morgan
2007-09-14 23:45:51 -04:00
parent 232e889344
commit 607b130577
2 changed files with 4 additions and 3 deletions

View File

@@ -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);

View File

@@ -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";