Skip to content
Permalink
Browse files

Fixed error in Definitions-edit-snapshot-harvest.jsp

  • Loading branch information...
svcarlsen committed Nov 24, 2015
1 parent 487d317 commit 13ed60459bf3765ab44f942269d2b16eb7de0e79
@@ -69,19 +69,13 @@ harvestName (Constants.HARVEST_SNAPSHOT_PARAM):
= new I18n(dk.netarkivet.harvester.Constants.TRANSLATIONS_BUNDLE);
%><%
HTMLUtils.setUTF8(request);
/*
Provider<HarvestDefinitionDAO> hdDaoProvider = new Provider<HarvestDefinitionDAO>() {
public HarvestDefinitionDAO get() {
return HarvestDefinitionDAO.getInstance();
}
};
Provider<JobDAO> jobDaoProvider = new Provider<JobDAO>() {
public JobDAO get() {
return JobDAO.getInstance();
}
};
*/
try {
SnapshotHarvestDefinition snapshotHarvestDefinition = SnapshotHarvestDefinition.
createSnapshotHarvestDefinitionWithDefaultDAOs();
@@ -100,7 +94,7 @@ harvestName (Constants.HARVEST_SNAPSHOT_PARAM):
String harvestName = request.getParameter(Constants.HARVEST_PARAM);
SparseFullHarvest hd = null;
if (harvestName != null) {
hd = hdDaoProvider.get().getSparseFullHarvest(harvestName);
hd = HarvestDefinitionDAO.getInstance().getSparseFullHarvest(harvestName);
if (hd == null) {
HTMLUtils.forwardWithErrorMessage(pageContext, I18N,
"errormsg;harvest.0.does.not.exist", harvestName);
@@ -224,7 +218,7 @@ harvestName (Constants.HARVEST_SNAPSHOT_PARAM):
<%
int rowcount = 0;
for (SparseFullHarvest oldHarvest
: hdDaoProvider.get().getAllSparseFullHarvestDefinitions()) {
: HarvestDefinitionDAO.getInstance().getAllSparseFullHarvestDefinitions()) {
if (oldHarvest.getName().equals(harvestName)) {
continue;
}

0 comments on commit 13ed604

Please sign in to comment.
You can’t perform that action at this time.