From 042d2b249cb58a1e98c37dd6daaa5b93446e7a52 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 30 Sep 2009 03:17:15 +0000 Subject: [PATCH] Fix [1985481] - Processed documents can be edited https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1985481&group_id=176962 revision 9407 and revision 9408 opened this bug again Fixing following a safer approach --- base/src/org/compiere/model/GridTable.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/GridTable.java b/base/src/org/compiere/model/GridTable.java index 7a491934f5..ecff883d16 100644 --- a/base/src/org/compiere/model/GridTable.java +++ b/base/src/org/compiere/model/GridTable.java @@ -3202,8 +3202,9 @@ public class GridTable extends AbstractTableModel if (hasUpdated) { Timestamp memUpdated = null; - // compare with the old value instead of the current value memUpdated = (Timestamp) getOldValue(row, colUpdated); + if (memUpdated == null) + memUpdated = (Timestamp) getValueAt(row, colUpdated); if (memUpdated != null && ! memUpdated.equals(dbUpdated)) return true; @@ -3211,8 +3212,9 @@ public class GridTable extends AbstractTableModel if (hasProcessed) { Boolean memProcessed = null; - // compare with the old value instead of the current value memProcessed = (Boolean) getOldValue(row, colProcessed); + if (memProcessed == null) + memProcessed = (Boolean) getValueAt(row, colProcessed); Boolean dbProcessed = Boolean.TRUE; if (! dbProcessedS.equals("Y"))