Chris Morgan : Switch to accessor to set objectManager::sReturnTo. Fixes a fatal error due to bugs class accessing a private member of objectManager .

Chris Morgan cmorgan at winehq.org
Fri Sep 28 22:00:47 CDT 2007


Module: appdb
Branch: master
Commit: 05070e6a3a92b375ad5d3a60b4daa0b893f19c10
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=05070e6a3a92b375ad5d3a60b4daa0b893f19c10

Author: Chris Morgan <cmorgan at alum.wpi.edu>
Date:   Fri Sep 28 23:00:42 2007 -0400

Switch to accessor to set objectManager::sReturnTo. Fixes a fatal error due to bugs class accessing a private member of objectManager.

---

 include/bugs.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/bugs.php b/include/bugs.php
index a7d712b..7e87f0d 100644
--- a/include/bugs.php
+++ b/include/bugs.php
@@ -565,7 +565,7 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds)
             if($bCanEdit == true)
             {
                 $oM = new objectManager("bug");
-                $oM->sReturnTo = $oVersion->objectMakeUrl();
+                $oM->setReturnTo($oVersion->objectMakeUrl());
                 echo "<td align=center>[<a href='".$oM->makeUrl("delete", $oBuglink->iLinkId)."&sSubmit=delete'>delete</a>]</td>\n";
                 if ($oBuglink->bQueued)
                 {




More information about the wine-cvs mailing list