From beed29012e61ef8d5e6f61ce3ea48759e498fb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 26 Nov 2006 17:15:38 +0000 Subject: [PATCH] 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. --- admin/moveAppVersion.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/moveAppVersion.php b/admin/moveAppVersion.php index fa8c467..09ef5de 100644 --- a/admin/moveAppVersion.php +++ b/admin/moveAppVersion.php @@ -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']));