note: Fix a warning when editing notes

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-29 16:32:37 +02:00
parent b4bae2f9fe
commit c3beccd38d

View File

@@ -332,6 +332,8 @@ class Note {
}
function outputEditor($aValues = null)
{
if($aValues)
{
if(!$this->iVersionId)
$this->iVersionId = getInput('iVersionId', $aValues);
@@ -339,6 +341,10 @@ class Note {
if(!$this->iAppId)
$this->iAppId = getInput('iAppId', $aValues);
if(!$this->sTitle)
$this->sTitle = getInput('sNoteTitle', $aValues);
}
if($this->iAppId && !$this->iVersionId)
$this->iVersionId = APPNOTE_SHOW_FOR_ALL;
@@ -348,9 +354,6 @@ class Note {
$this->iAppId = $oVersion->iAppId;
}
if(!$this->sTitle)
$this->sTitle = getInput('sNoteTitle', $aValues);
HtmlAreaLoaderScript(array("editor"));
echo html_frame_start("Edit Application Note {$aClean['noteId']}", "90%","",0);