A patch from Ingo Wolfmayr for "CMS does not store "Long text"" https://issues.apache.org/jira/browse/OFBIZ-7050
When you create content via CMS (Content --> Websites --> [Select Website for example WebStore] --> CMS ) the text content does not get stored. No error message available. TextData was not submitted. Additionally I corrected a Javascript call as the used function signature does not exist. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1743100 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<script type="text/javascript">
|
||||
// save new content id to JS scope so it can be used by the jstree in
|
||||
// the WebSiteCmsNav view where the newContentId is not available
|
||||
var newContentId = ${contentId?default("'a'")};
|
||||
var newContentId = "${contentId?default("'a'")}";
|
||||
|
||||
function cmsSave() {
|
||||
var simpleFormAction = '<@ofbizUrl>/updateContentCms</@ofbizUrl>';
|
||||
@@ -354,11 +354,11 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="editorcontainer" class="nocolumns">
|
||||
<div id="cmseditor" style="margin: 0; width: 100%; border: 1px solid black;">
|
||||
<#if (dataText?has_content)>
|
||||
${StringUtil.wrapString(dataText.textData!)}
|
||||
</#if>
|
||||
</div>
|
||||
<textarea name="textData" id="cmseditor" style="margin: 0; width: 100%; border: 1px solid black;">
|
||||
<#if (dataText?has_content)>
|
||||
${StringUtil.wrapString(dataText.textData!)}
|
||||
</#if>
|
||||
</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -559,7 +559,7 @@ function callMetaInfo(contentId) {
|
||||
success: function(data) {
|
||||
// if the content id is set reload the contentScreen and tree
|
||||
if (contentId && contentId.length) {
|
||||
callDocument('', contentId, form.contentIdFrom.value, form.fromDate.value, form.contentAssocTypeId.value, '');
|
||||
callDocument('', contentId, '', '');
|
||||
jQuery("#${contentRoot}").jstree('refresh', '#'+form.contentIdFrom.value);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user