note: Fix a warning when editing notes
This commit is contained in:
@@ -333,11 +333,17 @@ class Note {
|
|||||||
|
|
||||||
function outputEditor($aValues = null)
|
function outputEditor($aValues = null)
|
||||||
{
|
{
|
||||||
if(!$this->iVersionId)
|
if($aValues)
|
||||||
$this->iVersionId = getInput('iVersionId', $aValues);
|
{
|
||||||
|
if(!$this->iVersionId)
|
||||||
|
$this->iVersionId = getInput('iVersionId', $aValues);
|
||||||
|
|
||||||
if(!$this->iAppId)
|
if(!$this->iAppId)
|
||||||
$this->iAppId = getInput('iAppId', $aValues);
|
$this->iAppId = getInput('iAppId', $aValues);
|
||||||
|
|
||||||
|
if(!$this->sTitle)
|
||||||
|
$this->sTitle = getInput('sNoteTitle', $aValues);
|
||||||
|
}
|
||||||
|
|
||||||
if($this->iAppId && !$this->iVersionId)
|
if($this->iAppId && !$this->iVersionId)
|
||||||
$this->iVersionId = APPNOTE_SHOW_FOR_ALL;
|
$this->iVersionId = APPNOTE_SHOW_FOR_ALL;
|
||||||
@@ -348,9 +354,6 @@ class Note {
|
|||||||
$this->iAppId = $oVersion->iAppId;
|
$this->iAppId = $oVersion->iAppId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->sTitle)
|
|
||||||
$this->sTitle = getInput('sNoteTitle', $aValues);
|
|
||||||
|
|
||||||
HtmlAreaLoaderScript(array("editor"));
|
HtmlAreaLoaderScript(array("editor"));
|
||||||
|
|
||||||
echo html_frame_start("Edit Application Note {$aClean['noteId']}", "90%","",0);
|
echo html_frame_start("Edit Application Note {$aClean['noteId']}", "90%","",0);
|
||||||
|
|||||||
Reference in New Issue
Block a user