From 82cd3b245b0b6df7bcb915e6c7df1b6ee34917a5 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 24 Aug 2007 03:17:25 +0000 Subject: [PATCH] Create a version instance from $aClean['iVersionId'], if $aClean['iVersionId'] is set. We use this version instance in several sets of logic. Fixes bug 9275. --- appview.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appview.php b/appview.php index b5e20f3..34c5895 100644 --- a/appview.php +++ b/appview.php @@ -76,6 +76,11 @@ if(empty($aClean['iAppId']) && empty($aClean['iVersionId'])) if (isset($aClean['sSub'])) { + // create the version object if iVersionId is set + // we use this version object in many of the below cases + if(isset($aClean['iVersionId'])) + $oVersion = new Version($aClean['iVersionId']); + if(($aClean['sSub'] == 'delete' ) && ($aClean['iBuglinkId'])) { if(($_SESSION['current']->hasPriv("admin") ||