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/01/23 18:30:52 UTC
svn commit: r499088 -
/lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java
Author: andreas
Date: Tue Jan 23 09:30:51 2007
New Revision: 499088
URL: http://svn.apache.org/viewvc?view=rev&rev=499088
Log:
Don't try to check in transactionables which are checked out by a different user
Modified:
lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java
Modified: lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java?view=diff&rev=499088&r1=499087&r2=499088
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java Tue Jan 23 09:30:51 2007
@@ -156,7 +156,7 @@
for (int i = 0; i < objects.length; i++) {
if (objects[i] instanceof Transactionable) {
Transactionable t = (Transactionable) objects[i];
- if (t.isCheckedOut()) {
+ if (t.isCheckedOutByUser()) {
t.checkin();
}
if (t.isLocked()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org