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
This commit is contained in:
parent
80280bb8f0
commit
042d2b249c
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue