Prevent ids getting lost during editing
This commit is contained in:
committed by
Chris Morgan
parent
3a25c64333
commit
16d212c552
@@ -200,6 +200,8 @@ class Comment {
|
|||||||
$this->sSubject = $aClean['sSubject'];
|
$this->sSubject = $aClean['sSubject'];
|
||||||
$this->sBody = $aClean['sBody'];
|
$this->sBody = $aClean['sBody'];
|
||||||
$this->iParentId = $aClean['iThread'];
|
$this->iParentId = $aClean['iThread'];
|
||||||
|
|
||||||
|
if($aClean['iVersionId'])
|
||||||
$this->iVersionId = $aClean['iVersionId'];
|
$this->iVersionId = $aClean['iVersionId'];
|
||||||
|
|
||||||
if(!$this->oOwner)
|
if(!$this->oOwner)
|
||||||
|
|||||||
@@ -443,7 +443,9 @@ class distribution {
|
|||||||
/* $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)
|
||||||
{
|
{
|
||||||
|
if($aClean['iDistributionId'])
|
||||||
$this->iDistributionId = $aValues['iDistributionId'];
|
$this->iDistributionId = $aValues['iDistributionId'];
|
||||||
|
|
||||||
$this->sName = $aValues['sDistribution'];
|
$this->sName = $aValues['sDistribution'];
|
||||||
$this->sUrl = $aValues['sUrl'];
|
$this->sUrl = $aValues['sUrl'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user