You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/02/09 17:57:44 UTC

svn commit: r505368 - /lenya/trunk/src/modules-core/usecase/usecases.js

Author: andreas
Date: Fri Feb  9 08:57:44 2007
New Revision: 505368

URL: http://svn.apache.org/viewvc?view=rev&rev=505368
Log:
Lock nodes only if usecase is executable

Modified:
    lenya/trunk/src/modules-core/usecase/usecases.js

Modified: lenya/trunk/src/modules-core/usecase/usecases.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/usecase/usecases.js?view=diff&rev=505368&r1=505367&r2=505368
==============================================================================
--- lenya/trunk/src/modules-core/usecase/usecases.js (original)
+++ lenya/trunk/src/modules-core/usecase/usecases.js Fri Feb  9 08:57:44 2007
@@ -1,4 +1,4 @@
-/*
+3/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  *  contributor license agreements.  See the NOTICE file distributed with
  *  this work for additional information regarding copyright ownership.
@@ -310,7 +310,9 @@
         usecase = getUsecase(usecaseName);
         passRequestParameters(usecase);
         usecase.checkPreconditions();
-        usecase.lockInvolvedObjects();
+        if (!usecase.hasErrors()) {
+            usecase.lockInvolvedObjects();
+        }
         // create proxy object to save usecase state
         proxy = new Packages.org.apache.lenya.cms.usecase.impl.UsecaseProxy(usecase);
         view = usecase.getView();



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