Module: appdb Branch: master Commit: 5672f2e82b2ce1dd458b135890802abf9ae4fa09 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=5672f2e82b2ce1dd458b13589...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Sun Oct 21 12:25:38 2007 +0200
Fix maintainer processing
---
include/maintainer.php | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/maintainer.php b/include/maintainer.php index 6927979..3496292 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -237,7 +237,7 @@ class maintainer $oUser = new User($this->iUserId);
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 */ $hResult = query_parameters("UPDATE appMaintainers SET queued='false' WHERE userId = '?' AND maintainerId = '?'", @@ -855,13 +855,19 @@ class maintainer $oApp = new Application($this->iAppId); $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 echo '<tr valign=top><td class=color0 style='text-align:right'><b>App Name:</b></td>',"\n"; echo "<td>".$oApp->objectMakeLink()."</td></tr>\n";
//version - echo '<tr valign=top><td class=color0 style='text-align:right'><b>App Version:</b></td>',"\n"; - echo "<td>".$oVersion->objectMakeLink()."</td></tr>\n"; + if($oVersion->iVersionId) + { + 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 echo '<tr valign=top><td class=color0 style='text-align:right'><b>Maintainer request reason:</b></td>',"\n";