Skip to content

Commit

Permalink
Fix file version display object naming bug #4343
Browse files Browse the repository at this point in the history
This is prelim work before adding prov to the page
  • Loading branch information
matthew-a-dunlap committed Apr 30, 2018
1 parent 03ed59e commit 944419f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ private void compareMetadata(FileMetadata newFileMetadata, FileMetadata original
ResourceBundle.getBundle("Bundle").getString("file.versionDifferences.fileNameDetailTitle"), 0, 1, 0, 0);
}
}

//Description differences
if ( originalFileMetadata != null) {
if (newFileMetadata.getDescription() != null
&& originalFileMetadata.getDescription() != null
Expand Down Expand Up @@ -166,14 +168,14 @@ private void compareMetadata(FileMetadata newFileMetadata, FileMetadata original
}
}

private void updateDifferenceSummary(String groupLabel, String itemLabel, int changed, int added, int deleted, int replaced) {
updateDifferenceSummary(groupLabel, itemLabel, changed, added, deleted, replaced, false);
private void updateDifferenceSummary(String groupLabel, String itemLabel, int added, int changed, int deleted, int replaced) {
updateDifferenceSummary(groupLabel, itemLabel, added, changed, deleted, replaced, false);
}


private void updateDifferenceSummary(String groupLabel, String itemLabel, int changed, int added, int deleted, int replaced, boolean multiple) {
private void updateDifferenceSummary(String groupLabel, String itemLabel, int added, int changed, int deleted, int replaced, boolean multiple) {
FileDifferenceSummaryGroup summaryGroup = new FileDifferenceSummaryGroup(groupLabel);
FileDifferenceSummaryItem summaryItem = new FileDifferenceSummaryItem(itemLabel, changed, added, deleted, replaced, multiple);
FileDifferenceSummaryItem summaryItem = new FileDifferenceSummaryItem(itemLabel, added, changed, deleted, replaced, multiple);

if (!this.differenceSummaryGroups.contains(summaryGroup)) {
summaryGroup.getFileDifferenceSummaryItems().add(summaryItem);
Expand Down

0 comments on commit 944419f

Please sign in to comment.