BUG 7955 this issue was fixed.

This commit is contained in:
Alvaro Campos
2011-11-17 09:40:01 -04:00
parent 9471a6cb60
commit 2b8f40f03f
11 changed files with 73 additions and 81 deletions

View File

@@ -290,10 +290,7 @@ class OutputDocument extends BaseOutputDocument {
if ($this->out_doc_title !== $sValue || $sValue === '') {
try {
$this->out_doc_title = $sValue;
//verify the content for base language
Content::copyContentOnBaseLanguageIfNotExists('OUT_DOC_TITLE', $this->getOutDocUid(), $this->out_doc_title);
$iResult = Content::addContent('OUT_DOC_TITLE', '', $this->getOutDocUid(), (defined('SYS_LANG') ? SYS_LANG : 'en'), $this->out_doc_title);
}
catch (Exception $oError) {
@@ -334,10 +331,7 @@ class OutputDocument extends BaseOutputDocument {
if ($this->out_doc_description !== $sValue || $sValue === '') {
try {
$this->out_doc_description = $sValue;
//verify the content for base language
Content::copyContentOnBaseLanguageIfNotExists('OUT_DOC_DESCRIPTION', $this->getOutDocUid(), $this->out_doc_description);
$iResult = Content::addContent('OUT_DOC_DESCRIPTION', '', $this->getOutDocUid(), (defined('SYS_LANG') ? SYS_LANG : 'en'), $this->out_doc_description);
}
catch (Exception $oError) {