Skip to content

Commit

Permalink
pkp#4789 fixed name and duration for review submit due date
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Sep 20, 2024
1 parent 29d065e commit f2c50a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
trait HasReviewDueDate
{
public const REVIEW_SUBMIT_DEFAULT_DUE_WEEKS = 4;
public const RESPONSE_RESPONSE_DEFAULT_DUE_WEEKS = 4;
public const REVIEW_RESPONSE_DEFAULT_DUE_WEEKS = 3;

/**
* Get the review submit due dates
Expand All @@ -44,7 +44,7 @@ public function getReviewResponseDueDate(Context $context): Carbon
$numWeeks = (int) $context->getData('numWeeksPerResponse');

if ($numWeeks <= 0) {
$numWeeks = static::RESPONSE_RESPONSE_DEFAULT_DUE_WEEKS;
$numWeeks = static::REVIEW_RESPONSE_DEFAULT_DUE_WEEKS;
}

return Carbon::today()->endOfDay()->addWeeks($numWeeks);
Expand Down

0 comments on commit f2c50a1

Please sign in to comment.