You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jo...@apache.org on 2006/08/29 15:53:05 UTC

svn commit: r438076 - /lenya/trunk/src/webapp/lenya/usecases/usecases.js

Author: josias
Date: Tue Aug 29 06:53:05 2006
New Revision: 438076

URL: http://svn.apache.org/viewvc?rev=438076&view=rev
Log:
only recreate the usecase proxy if the usecase has not finished yet. (if the usecase has finished, the creation of the usecase proxy may fail, because e.g. in the case of the delete-language usecase, the document does not exist anymore)

Modified:
    lenya/trunk/src/webapp/lenya/usecases/usecases.js

Modified: lenya/trunk/src/webapp/lenya/usecases/usecases.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/usecases/usecases.js?rev=438076&r1=438075&r2=438076&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/usecases.js (original)
+++ lenya/trunk/src/webapp/lenya/usecases/usecases.js Tue Aug 29 06:53:05 2006
@@ -252,7 +252,9 @@
                     usecase.cancel();
                     ready = true;
                 }
-                proxy = new Packages.org.apache.lenya.cms.usecase.UsecaseProxy(usecase);
+                if (!ready) {
+                    proxy = new Packages.org.apache.lenya.cms.usecase.UsecaseProxy(usecase);
+                }
                 targetUrl = usecase.getTargetURL(success);
             }
             catch (exception) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org