You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2008/09/08 13:37:46 UTC
svn commit: r693056 -
/incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
Author: doebele
Date: Mon Sep 8 04:37:44 2008
New Revision: 693056
URL: http://svn.apache.org/viewvc?rev=693056&view=rev
Log:
EMPIREDB-12
Modified:
incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
Modified: incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java?rev=693056&r1=693055&r2=693056&view=diff
==============================================================================
--- incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java (original)
+++ incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java Mon Sep 8 04:37:44 2008
@@ -250,7 +250,10 @@
{ // get record object from session
Record rec = getRecordFromSession();
if (rec!=null && (rec instanceof DBRecord))
- { // Record restored
+ { // Check rowset
+ if (((DBRecord)rec).getRowSet()!=rowset)
+ return error(Errors.ObjectNotValid, "record");
+ // Record restored
this.record = (DBRecord)rec;
return success();
}
@@ -259,7 +262,7 @@
}
// Other
default:
- return error(Errors.NotSupported, "");
+ return error(Errors.NotSupported, "reloadRecord[] " + String.valueOf(persistence));
}
}