* Finish task #8087.

This commit is contained in:
tianshujie98
2020-09-30 14:16:08 +08:00
parent e024d848e1
commit 0a7f82bc45
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ $lang->task->error->deadlineSmall = '"Deadline" must be greater than "StartD
$lang->task->error->alreadyStarted = 'You cannot start this task, because it is started.';
$lang->task->error->realStartedEmpty = '"Real Started" should not be empty.';
$lang->task->error->finishedDateEmpty = '"Finished Date" should not be empty.';
$lang->task->error->chooseOtherParent = 'the currently selected parent task has been consumed, please select another parent task.';
$lang->task->error->alreadyConsumed = 'The currently selected parent task has been consumed.';
/* Report. */
$lang->task->report = new stdclass();
+1 -1
View File
@@ -220,7 +220,7 @@ $lang->task->error->deadlineSmall = '"Deadline" must be greater than "StartD
$lang->task->error->alreadyStarted = 'You cannot start this task, because it is started.';
$lang->task->error->realStartedEmpty = '"Real Started" should not be empty.';
$lang->task->error->finishedDateEmpty = '"Finished Date" should not be empty.';
$lang->task->error->chooseOtherParent = 'the currently selected parent task has been consumed, please select another parent task.';
$lang->task->error->alreadyConsumed = 'The currently selected parent task has been consumed.';
/* Report. */
$lang->task->report = new stdclass();
+1 -1
View File
@@ -220,7 +220,7 @@ $lang->task->error->deadlineSmall = '"Date Limite" doit être supérieur à
$lang->task->error->alreadyStarted = 'You cannot start this task, because it is started.';
$lang->task->error->realStartedEmpty = '"Real Started" should not be empty.';
$lang->task->error->finishedDateEmpty = '"Finished Date" should not be empty.';
$lang->task->error->chooseOtherParent = 'the currently selected parent task has been consumed, please select another parent task.';
$lang->task->error->alreadyConsumed = 'The currently selected parent task has been consumed.';
/* Report. */
$lang->task->report = new stdclass();
+1 -1
View File
@@ -220,7 +220,7 @@ $lang->task->error->deadlineSmall = '"Hạn chót" phải lớn hơn "Ngày
$lang->task->error->alreadyStarted = 'You cannot start this task, because it is started.';
$lang->task->error->realStartedEmpty = '"Real Started" should not be empty.';
$lang->task->error->finishedDateEmpty = '"Finished Date" should not be empty.';
$lang->task->error->chooseOtherParent = 'the currently selected parent task has been consumed, please select another parent task.';
$lang->task->error->alreadyConsumed = 'The currently selected parent task has been consumed.';
/* Report. */
$lang->task->report = new stdclass();
+1 -1
View File
@@ -220,7 +220,7 @@ $lang->task->error->deadlineSmall = '"截止日期"必须大于"预计开始
$lang->task->error->alreadyStarted = '此任务已被启动,不能重复启动!';
$lang->task->error->realStartedEmpty = '实际开始不能为空';
$lang->task->error->finishedDateEmpty = '实际完成不能为空';
$lang->task->error->chooseOtherParent = '当前选中的父任务已有消耗,请选择其他父任务。';
$lang->task->error->alreadyConsumed = '当前选中的父任务已有消耗。';
/* Report. */
$lang->task->report = new stdclass();
+1 -1
View File
@@ -779,7 +779,7 @@ class taskModel extends model
{
$taskConsumed = 0;
$taskConsumed = $this->dao->select('consumed')->from(TABLE_TASK)->where('id')->eq($this->post->parent)->andWhere('parent')->eq(0)->fetch('consumed');
if($taskConsumed > 0) die(js::error($this->lang->task->error->chooseOtherParent));
if($taskConsumed > 0) die(js::error($this->lang->task->error->alreadyConsumed));
}
$now = helper::now();