Prevent ids getting lost during editing

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-23 21:49:06 +02:00
committed by Chris Morgan
parent 3a25c64333
commit 16d212c552
2 changed files with 6 additions and 2 deletions

View File

@@ -200,7 +200,9 @@ class Comment {
$this->sSubject = $aClean['sSubject'];
$this->sBody = $aClean['sBody'];
$this->iParentId = $aClean['iThread'];
$this->iVersionId = $aClean['iVersionId'];
if($aClean['iVersionId'])
$this->iVersionId = $aClean['iVersionId'];
if(!$this->oOwner)
$this->oOwner = $_SESSION['current'];

View File

@@ -443,7 +443,9 @@ class distribution {
/* $aValues can be $_REQUEST or any array with the values from outputEditor() */
function GetOutputEditorValues($aValues)
{
$this->iDistributionId = $aValues['iDistributionId'];
if($aClean['iDistributionId'])
$this->iDistributionId = $aValues['iDistributionId'];
$this->sName = $aValues['sDistribution'];
$this->sUrl = $aValues['sUrl'];
}