diff --git a/include/testData.php b/include/testData.php index 9fc5323..21f4743 100644 --- a/include/testData.php +++ b/include/testData.php @@ -244,6 +244,16 @@ class testData{ } } + function getFormattedApplicationVersionName() + { + $oVersion = new Version($this->iVersionId); + $sAppName = application::lookup_name($oVersion->iAppId); + $sVersionName = version::lookup_name($oVersion->iVersionId); + $sName = "$sAppName: $sVersionName"; + + return $sName; + } + function mailSubmitter($sAction="add") { global $aClean; @@ -253,10 +263,7 @@ class testData{ $oSubmitter = new User($this->iSubmitterId); /* Get the full app/version name to display */ - $oVersion = new Version($this->iVersionId); - $sAppName = application::lookup_name($oVersion->iAppId); - $sVersionName = version::lookup_name($oVersion->iVersionId); - $sName = "$sAppName: $sVersionName"; + $sName = $this->getFormattedApplicationVersionName(); switch($sAction) { @@ -486,7 +493,9 @@ class testData{ { HtmlAreaLoaderScript(array("Test1", "Test2", "Test3")); - echo html_frame_start("Test Form", "90%", "", 0); + $sName = $this->getFormattedApplicationVersionName(); + + echo html_frame_start("Test Form - $sName", "90%", "", 0); echo "\n"; // What works