summaryrefslogtreecommitdiff
path: root/app/Model/TaskDuplication.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-10 15:55:57 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-10 15:55:57 -0400
commita7b77623ce602a44a341f747fdfe43dbdc268304 (patch)
tree28040eb9633cba305962aaf56df81cce55113eff /app/Model/TaskDuplication.php
parentbd3c44c3d337d49b02e19da0c6baed1a4abec37b (diff)
Recurring tasks (#847): rename class constants
Diffstat (limited to 'app/Model/TaskDuplication.php')
-rwxr-xr-xapp/Model/TaskDuplication.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Model/TaskDuplication.php b/app/Model/TaskDuplication.php
index 7f9308d2..42777335 100755
--- a/app/Model/TaskDuplication.php
+++ b/app/Model/TaskDuplication.php
@@ -62,7 +62,7 @@ class TaskDuplication extends Base
{
$values = $this->copyFields($task_id);
- if ($values['recurrence_status'] == Task::RECURE_STATUS_PENDING) {
+ if ($values['recurrence_status'] == Task::RECURRING_STATUS_PENDING) {
$values['recurrence_parent'] = $task_id;
$values['column_id'] = $this->board->getFirstColumn($values['project_id']);
@@ -76,7 +76,7 @@ class TaskDuplication extends Base
->table(Task::TABLE)
->eq('id', $task_id)
->update(array(
- 'recurrence_status' => Task::RECURE_STATUS_PROCESSED,
+ 'recurrence_status' => Task::RECURRING_STATUS_PROCESSED,
'recurrence_child' => $recurring_task_id,
));
@@ -181,7 +181,7 @@ class TaskDuplication extends Base
{
if (! empty($values['date_due']) && $values['recurrence_factor'] != 0) {
- if ($values['recurrence_basedate'] == Task::RECURE_BASEDATE_TRIGGERDATE) {
+ if ($values['recurrence_basedate'] == Task::RECURRING_BASEDATE_TRIGGERDATE) {
$values['date_due'] = time();
}
@@ -189,10 +189,10 @@ class TaskDuplication extends Base
$subtract = $values['recurrence_factor'] < 0;
switch ($values['recurrence_timeframe']) {
- case Task::RECURE_MONTHS:
+ case Task::RECURRING_TIMEFRAME_MONTHS:
$interval = 'P' . $factor . 'M';
break;
- case Task::RECURE_YEARS:
+ case Task::RECURRING_TIMEFRAME_YEARS:
$interval = 'P' . $factor . 'Y';
break;
default: