Fix maintainer processing

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-21 12:25:38 +02:00
committed by Chris Morgan
parent 7a1d3efb1c
commit 5672f2e82b

View File

@@ -237,7 +237,7 @@ class maintainer
$oUser = new User($this->iUserId); $oUser = new User($this->iUserId);
if(!$oUser->isSuperMaintainer($this->iAppId) && if(!$oUser->isSuperMaintainer($this->iAppId) &&
((!$this->bSuperMaintainer && !$oUser->isMaintainer($this->iVersionId)) | $this->bSuperMaintainer)) ((!$this->bSuperMaintainer && !$oUser->isMaintainer($this->iVersionId)) || $this->bSuperMaintainer))
{ {
/* unqueue the maintainer entry */ /* unqueue the maintainer entry */
$hResult = query_parameters("UPDATE appMaintainers SET queued='false' WHERE userId = '?' AND maintainerId = '?'", $hResult = query_parameters("UPDATE appMaintainers SET queued='false' WHERE userId = '?' AND maintainerId = '?'",
@@ -855,13 +855,19 @@ class maintainer
$oApp = new Application($this->iAppId); $oApp = new Application($this->iAppId);
$oVersion = new Version($this->iVersionId); $oVersion = new Version($this->iVersionId);
echo "<input type=\"hidden\" name=\"iAppId\" value=\"".$oApp->iAppId."\" />\n";
echo "<input type=\"hidden\" name=\"iVersionId\" value=\"".$oVersion->iVersionId."\" />\n";
//app name //app name
echo '<tr valign=top><td class=color0 style=\'text-align:right\'><b>App Name:</b></td>',"\n"; echo '<tr valign=top><td class=color0 style=\'text-align:right\'><b>App Name:</b></td>',"\n";
echo "<td>".$oApp->objectMakeLink()."</td></tr>\n"; echo "<td>".$oApp->objectMakeLink()."</td></tr>\n";
//version //version
echo '<tr valign=top><td class=color0 style=\'text-align:right\'><b>App Version:</b></td>',"\n"; if($oVersion->iVersionId)
echo "<td>".$oVersion->objectMakeLink()."</td></tr>\n"; {
echo '<tr valign=top><td class=color0 style=\'text-align:right\'><b>App Version:</b></td>',"\n";
echo "<td>".$oVersion->objectMakeLink()."</td></tr>\n";
}
//maintainReason //maintainReason
echo '<tr valign=top><td class=color0 style=\'text-align:right\'><b>Maintainer request reason:</b></td>',"\n"; echo '<tr valign=top><td class=color0 style=\'text-align:right\'><b>Maintainer request reason:</b></td>',"\n";