svn commit: r1821115 - /ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1821115 - /ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl

jleroux@apache.org
Author: jleroux
Date: Sun Jan 14 18:43:49 2018
New Revision: 1821115

URL: http://svn.apache.org/viewvc?rev=1821115&view=rev
Log:
Fixed: Error on updating sub content of CMS webSIte
(OFBIZ-10096)

Steps to reproduce:
Get to
https://demo-trunk.ofbiz.apache.org/content/control/WebSiteCms?webSiteId=CmsSite
4. From WebSIteNav, click on Cms Site Demo Home page
Edit content in editor and click save button (available in editor)
It gives error:
The Following Errors Occurred:
The following required parameter is missing:
  [IN] [updateContentAssoc.contentIdTo]

jleroux: the elrte internal button works but not the widget Save button

Thanks: Aditya

Modified:
    ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl

Modified: ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl?rev=1821115&r1=1821114&r2=1821115&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl (original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/template/website/WebSiteCMSContent.ftl Sun Jan 14 18:43:49 2018
@@ -154,11 +154,14 @@
     <form name="cmsform" enctype="multipart/form-data" method="post" action="<@ofbizUrl>${formAction}</@ofbizUrl>" style="margin: 0;">
         <#if (content?has_content)>
             <input type="hidden" name="dataResourceId" value="${(dataResource.dataResourceId)!}"/>
-            <input type="hidden" name="contentId" value="${content.contentId}"/>
+            <input type="hidden" name="contentIdTo" value="${content.contentId}"/>
 
             <#list requestParameters.keySet() as paramName>
-                <#if (paramName == 'contentIdFrom' || paramName == 'contentAssocTypeId' || paramName == 'fromDate')>
-                    <input type="hidden" name="${paramName}" value="${requestParameters.get(paramName)}"/>
+                <#if paramName == 'contentIdFrom'>
+                  <input type="hidden" name="contentId" value="${requestParameters.get(paramName)}"/>
+                </#if>
+                <#if (paramName == 'contentAssocTypeId' || paramName == 'fromDate')>
+                  <input type="hidden" name="${paramName}" value="${requestParameters.get(paramName)}"/>
                 </#if>
             </#list>
         <#else>