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.
This commit is contained in:
Alexander Nicolaysen Sørnes
2006-11-26 17:15:38 +00:00
committed by WineHQ
parent b858e2ba53
commit beed29012e

View File

@@ -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']));