Author: jleroux
Date: Tue May 10 05:51:38 2016
New Revision: 1743100
URL: http://svn.apache.org/viewvc?rev=1743100&view=rev
Log:
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.
Modified:
ofbiz/trunk/applications/content/template/website/WebSiteCMSContent.ftl
ofbiz/trunk/applications/content/template/website/WebSiteCMSNav.ftl
Modified:
ofbiz/trunk/applications/content/template/website/WebSiteCMSContent.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/website/WebSiteCMSContent.ftl?rev=1743100&r1=1743099&r2=1743100&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/template/website/WebSiteCMSContent.ftl
(original)
+++ ofbiz/trunk/applications/content/template/website/WebSiteCMSContent.ftl Tue
May 10 05:51:38 2016
@@ -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>
Modified: ofbiz/trunk/applications/content/template/website/WebSiteCMSNav.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/website/WebSiteCMSNav.ftl?rev=1743100&r1=1743099&r2=1743100&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/template/website/WebSiteCMSNav.ftl
(original)
+++ ofbiz/trunk/applications/content/template/website/WebSiteCMSNav.ftl Tue May
10 05:51:38 2016
@@ -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);
}
},