Skip to content

Commit

Permalink
#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 Oct 10, 2024
1 parent 924e208 commit 1f6591c
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 1f6591c

Please sign in to comment.