Prevent ids getting lost during editing
This commit is contained in:
committed by
Chris Morgan
parent
3a25c64333
commit
16d212c552
@@ -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'];
|
||||
|
||||
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user