appdb/admin moveAppVersion.php

WineHQ wineowner at wine.codeweavers.com
Sun Nov 26 11:15:38 CST 2006


ChangeSet ID:	30025
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/11/26 11:15:38

Modified files:
	admin          : moveAppVersion.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Fix moving versions by having the move version form update the internal version variable and then call the
	Version::update() method to perform the update.

Patch: http://cvs.winehq.org/patch.py?id=30025

Old revision  New revision  Changes     Path
 1.9           1.10          +2 -1       appdb/admin/moveAppVersion.php

Index: appdb/admin/moveAppVersion.php
diff -u -p appdb/admin/moveAppVersion.php:1.9 appdb/admin/moveAppVersion.php:1.10
--- appdb/admin/moveAppVersion.php:1.9	26 Nov 2006 17:15:38 -0000
+++ appdb/admin/moveAppVersion.php	26 Nov 2006 17:15:38 -0000
@@ -22,7 +22,8 @@ if(!empty($aClean['sAction']))
 {
     /* move this version to the given application */
     $oVersion = new Version($aClean['iVersionId']);
-    $oVersion->update(null, null, null, null, $aClean['iAppId']);
+    $oVersion->iAppId = $aClean['iAppId'];
+    $oVersion->update();
 
     /* redirect to the application we just moved this version to */
     util_redirect_and_exit(apidb_fullurl("appview.php?iAppId=".$aClean['iAppId']));



More information about the wine-cvs mailing list