You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2003/10/01 18:03:04 UTC
cvs commit: cocoon-lenya/src/webapp/lenya usecase.xmap
edith 2003/10/01 09:03:04
Modified: src/webapp/lenya usecase.xmap
Log:
remove the attribute (document-id) from the session after pasting in case of cut
Revision Changes Path
1.112 +15 -3 cocoon-lenya/src/webapp/lenya/usecase.xmap
Index: usecase.xmap
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/usecase.xmap,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- usecase.xmap 25 Sep 2003 09:25:17 -0000 1.111
+++ usecase.xmap 1 Oct 2003 16:03:04 -0000 1.112
@@ -644,6 +644,7 @@
<map:match pattern="copy" type="step">
<map:act type="session-propagator">
+ <map:parameter name="org.apache.lenya.cms.info.cutdocumentid" value=""/>
<map:parameter name="org.apache.lenya.cms.info.firstdocid" value="{request-param:documentid}"/>
<map:parameter name="org.apache.lenya.cms.info.firstarea" value="{request-param:area}"/>
<map:parameter name="org.apache.lenya.cms.info.action" value="{request-param:action}"/>
@@ -750,9 +751,20 @@
</map:match>
<map:match pattern="paste" type="step">
- <map:act type="session-propagator">
- <map:parameter name="org.apache.lenya.cms.info.cutdocumentid" value=""/>
- </map:act>
+ <map:select type="request-parameter">
+ <map:parameter name="parameter-name" value="task-id"/>
+ <map:when test="moveDocument">
+ <map:act type="session-propagator">
+ <map:parameter name="org.apache.lenya.cms.info.firstdocid" value=""/>
+ <map:parameter name="org.apache.lenya.cms.info.cutdocumentid" value=""/>
+ </map:act>
+ </map:when>
+ <map:otherwise>
+ <map:act type="session-propagator">
+ <map:parameter name="org.apache.lenya.cms.info.cutdocumentid" value=""/>
+ </map:act>
+ </map:otherwise>
+ </map:select>
<map:act type="task">
<map:redirect-to session="true" uri="{request:requestURI}"/>
</map:act>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org