[jira] [Updated] (OFBIZ-10096) Error on updating sub content of CMS webSIte

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

[jira] [Updated] (OFBIZ-10096) Error on updating sub content of CMS webSIte

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-10096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aditya Sharma updated OFBIZ-10096:
----------------------------------
    Attachment: OFBIZ-10096.patch

Problem:
contentIdTo is missing as IN parameter required for updating ContentAssoc.

contentId should be passed as contentIdTo rather then contentId as in ContentAssoc entity, publish point is always stored as contentId and current contentId as contentIdTo. contentId of publish point is available in parameters as contentIdFrom

Solution:
Set hidden parameters contentId to contentIdFrom available in parameters and contentIdTo to contentId of current content.

After this patch, content will be saved when we save it using save button available with elrte plugin toolbar but not with the save button available with the form. I think there is some custom js code for it. I will look into it further.

> Error on updating sub content of CMS webSIte
> --------------------------------------------
>
>                 Key: OFBIZ-10096
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10096
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: Trunk
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>            Priority: Minor
>         Attachments: OFBIZ-10096.patch, screenshot-1.png
>
>
> Steps to reproduce:
> 1. Go to Content component https://demo-trunk.ofbiz.apache.org/content/control/main
> 2. Click on webSiteId link of any website with sub-content as webpage (https://demo-trunk.ofbiz.apache.org/content/control/EditWebSite?webSiteId=CmsSite)
> 3. Click on CMS from submenu (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:
> {quote}
> The Following Errors Occurred:
> The following required parameter is missing: [IN] [updateContentAssoc.contentIdTo]
> {quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)