View | Details | Raw Unified | Return to bug 6506 | Differences between
and this patch

Collapse All | Expand All

(-)ocs-2.3.3-1.org/classes/submission/trackDirector/TrackDirectorAction.inc.php (-1 / +5 lines)
 Lines 217-223    Link Here 
217
			$schedConf =& Request::getSchedConf();
217
			$schedConf =& Request::getSchedConf();
218
			if ($schedConf->getSetting('reviewDeadlineType') != null) {
218
			if ($schedConf->getSetting('reviewDeadlineType') != null) {
219
				if ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
219
				if ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
220
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), $schedConf->getSetting('numWeeksPerReviewAbsolute'), null, false);
220
                                        $strDueDate = $schedConf->getSetting('numWeeksPerReviewAbsolute');
221
                                        if (!is_string($strDueDate)) {
222
                                                $strDueDate = date('Y-m-d', $schedConf->getSetting('numWeeksPerReviewAbsolute'));
223
                                        }
224
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), $strDueDate, null, false);
221
				} elseif ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_RELATIVE) {
225
				} elseif ($schedConf->getSetting('reviewDeadlineType') == REVIEW_DEADLINE_TYPE_RELATIVE) {
222
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), null, $schedConf->getSetting('numWeeksPerReviewRelative'), false);
226
					TrackDirectorAction::setDueDate($trackDirectorSubmission->getPaperId(), $reviewAssignment->getId(), null, $schedConf->getSetting('numWeeksPerReviewRelative'), false);
223
				}
227
				}

Return to bug 6506