Revision 6748
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/Eml210SAXHandler.java | ||
---|---|---|
1388 | 1388 |
String docidWithoutRev = DocumentUtil.getDocIdFromString(dataDocid); |
1389 | 1389 |
int latestRevision = DBUtil.getLatestRevisionInDocumentTable(docidWithoutRev); |
1390 | 1390 |
if (latestRevision > 0) { |
1391 |
previousDocid = distributionSection.getDataFileName() + PropertyService.getProperty("document.accNumSeparator") + latestRevision;
|
|
1391 |
previousDocid = docidWithoutRev + PropertyService.getProperty("document.accNumSeparator") + latestRevision;
|
|
1392 | 1392 |
} |
1393 | 1393 |
} |
1394 | 1394 |
|
Also available in: Unified diff
construct the proper previousDocId when checking for update permission