We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 6915
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +10 lines)
Line     Link Here 
0
-- a/classes/submission/trackDirector/TrackDirectorAction.inc.php
0
++ b/classes/submission/trackDirector/TrackDirectorAction.inc.php
 Lines 216-229   class TrackDirectorAction extends Action { Link Here 
216
216
217
			$schedConf =& Request::getSchedConf();
217
			$schedConf =& Request::getSchedConf();
218
			if ($schedConf->getSetting('reviewDeadlineType') != null) {
218
			if ($schedConf->getSetting('reviewDeadlineType') != null) {
219
				$dueDateSet = true;
219
				if ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
220
				if ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
220
					$reviewDeadlineDate = $schedConf->getSetting('numWeeksPerReviewAbsolute');
221
					$reviewDeadlineDate = $schedConf->getSetting('numWeeksPerReviewAbsolute');
221
					$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), $reviewDeadlineDate);
222
					$reviewDueDate = strftime(Config::getVar('general', 'date_format_short'), $reviewDeadlineDate);
222
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), $reviewDueDate, null, false);
223
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), $reviewDueDate, null, false);
223
				} elseif ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_RELATIVE) {
224
				} elseif ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_RELATIVE) {
224
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), null, $schedConf->getSetting('numWeeksPerReviewRelative'), false);
225
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), null, $schedConf->getSetting('numWeeksPerReviewRelative'), false);
226
				} else {
227
					$dueDateSet = false;
228
				}
229
				if ($dueDateSet) {
230
					$reviewAssignment = $reviewAssignmentDao->getReviewAssignment($trackDirectorSubmission->getPaperId(), $reviewerId, $stage);
231
					$trackDirectorSubmission->updateReviewAssignment($reviewAssignment);
232
					$trackDirectorSubmissionDao->updateTrackDirectorSubmission($trackDirectorSubmission);
225
				}
233
				}
226
			}
234
			}
235
227
			// Add log
236
			// Add log
228
			import('paper.log.PaperLog');
237
			import('paper.log.PaperLog');
229
			import('paper.log.PaperEventLogEntry');
238
			import('paper.log.PaperEventLogEntry');

Return to bug 6915