Revision 5186
Added by Jing Tao over 14 years ago
DocumentImpl.java | ||
---|---|---|
1984 | 1984 |
// if we couldn't find it in xml_documents we |
1985 | 1985 |
// need to find it in xml_revision table |
1986 | 1986 |
Vector<Integer> revList = DBUtil.getRevListFromRevisionTable(docid); |
1987 |
for (int i=0; i<revList.size(); i++) |
|
1987 |
/*for (int i=0; i<revList.size(); i++)
|
|
1988 | 1988 |
{ |
1989 | 1989 |
// Integer k = (Integer) revList.elementAt(i); |
1990 | 1990 |
// System.out.println("The rev in xml_revision table "+ k.toString()); |
... | ... | |
1993 | 1993 |
if (revList.contains(new Integer(revision))) |
1994 | 1994 |
{ |
1995 | 1995 |
return true; |
1996 |
}*/ |
|
1997 |
if(revList != null && !revList.isEmpty()) |
|
1998 |
{ |
|
1999 |
return true; |
|
1996 | 2000 |
} |
1997 | 2001 |
} |
1998 | 2002 |
// Get miss docid and rev, throw to McdDocNotFoundException |
Also available in: Unified diff
Fix the bug of http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4645. handleGetRevisionAndDocTypeAction will search both xml_documents and xml_revisions table.
It also changed some constrain in AccessionNumber when user update a document, of which all previous versions are in xml_revisions table.