Prevent ids from disappearing during form processing

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-22 18:58:15 +02:00
committed by Chris Morgan
parent c33d8a382e
commit fe56884a98
3 changed files with 15 additions and 5 deletions

View File

@@ -618,7 +618,9 @@ class Application {
/* $aValues can be $_REQUEST or any array with the values from outputEditor() */ /* $aValues can be $_REQUEST or any array with the values from outputEditor() */
public function GetOutputEditorValues($aValues) public function GetOutputEditorValues($aValues)
{ {
$this->iAppId = $aValues['iAppId']; if($aValues['iAppId'])
$this->iAppId = $aValues['iAppId'];
$this->sName = $aValues['sAppName']; $this->sName = $aValues['sAppName'];
$this->sDescription = $aValues['shAppDescription']; $this->sDescription = $aValues['shAppDescription'];
$this->iCatId = $aValues['iAppCatId']; $this->iCatId = $aValues['iAppCatId'];

View File

@@ -815,8 +815,12 @@ class testData{
/* $aValues can be $_REQUEST or any array with the values from outputEditor() */ /* $aValues can be $_REQUEST or any array with the values from outputEditor() */
function GetOutputEditorValues($aValues) function GetOutputEditorValues($aValues)
{ {
$this->iTestingId = $aValues['iTestingId']; if($aValues['iTestingId'])
$this->iVersionId = $aValues['iVersionId']; $this->iTestingId = $aValues['iTestingId'];
if($aValues['iVersionId'])
$this->iVersionId = $aValues['iVersionId'];
$this->shWhatWorks = $aValues['shWhatWorks']; $this->shWhatWorks = $aValues['shWhatWorks'];
$this->shWhatDoesnt = $aValues['shWhatDoesnt']; $this->shWhatDoesnt = $aValues['shWhatDoesnt'];
$this->shWhatNotTested = $aValues['shWhatNotTested']; $this->shWhatNotTested = $aValues['shWhatNotTested'];

View File

@@ -705,8 +705,12 @@ class version {
/* $aValues can be $_REQUEST or any array with the values from outputEditor() */ /* $aValues can be $_REQUEST or any array with the values from outputEditor() */
public function GetOutputEditorValues($aValues) public function GetOutputEditorValues($aValues)
{ {
$this->iAppId = $aValues['iAppId']; if($aValues['iAppId'])
$this->iVersionId = $aValues['iVersionId']; $this->iAppId = $aValues['iAppId'];
if($aValues['iVersionId'])
$this->iVersionId = $aValues['iVersionId'];
$this->sName = $aValues['sVersionName']; $this->sName = $aValues['sVersionName'];
$this->sDescription = $aValues['shVersionDescription']; $this->sDescription = $aValues['shVersionDescription'];
$this->sTestedRating = $aValues['sMaintainerRating']; $this->sTestedRating = $aValues['sMaintainerRating'];