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:
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user