Project

General

Profile

« Previous | Next » 

Revision 4986

Added by daigle over 15 years ago

Fix issue where every scheduled job gets the same parameters.

View differences:

src/edu/ucsb/nceas/metacat/scheduler/ScheduledJobAccess.java
236 236
			Vector<ScheduledJobParamDAO> jobParamList = 
237 237
				jobParamAccess.getAllJobParams();
238 238
			
239
			for(ScheduledJobParamDAO jobParamDAO : jobParamList) {
240
				jobDAO.addJobParam(jobParamDAO);
241
				
239
			for(ScheduledJobParamDAO jobParamDAO : jobParamList) {			
242 240
				Long jobId = jobParamDAO.getJobId();
243 241
				if( allJobDAOs.containsKey(jobId)) {
244 242
					allJobDAOs.get(jobId).addJobParam(jobParamDAO);

Also available in: Unified diff