Not able to create a page/object under a given parent page
----------------------------------------------------------
Key: XWIKI-2024
URL: http://jira.xwiki.org/jira/browse/XWIKI-2024
Project: XWiki Platform
Issue Type: Bug
Components: Core, Scripting - Velocity, Templates, Skins & User
Interface
Affects Versions: 1.2
Reporter: Sachin Mittal
When we create any object based on a class template and while creating in the
form template if we choose to pick the parent from the request context, the
same is not picked up. It creates the object under the default parent.
say in the Class creation template file if I add the following like
<input type="hidden" name="parent" value="${defaultparent}"/>
where defaultparent is something I assign dynamically above, the same page name
is not set as the parent for the object I am about to create.
this is because in editinline.vm we don't fetch the parent parameter passed in
the request.
adding this line would fix the issue.
<input type="hidden" name="parent" value="$!request.parent" />
thanks
Sachin
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications