From 4ee76f3b8263739378f683cf1f98276245ef77b5 Mon Sep 17 00:00:00 2001 From: zenggang Date: Tue, 7 Sep 2021 08:57:59 +0800 Subject: [PATCH] * Fix bug#14923 --- module/todo/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/todo/model.php b/module/todo/model.php index f2ea7a3668..ca4af5fc80 100644 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -242,12 +242,13 @@ class todoModel extends model ->setIF($this->post->date == false, 'date', '2030-01-01') ->setIF($this->post->begin == false, 'begin', '2400') ->setIF($this->post->end == false, 'end', '2400') + ->setIF($this->post->type == false, 'type', $oldTodo->type) ->setDefault('private', 0) ->stripTags($this->config->todo->editor->edit['id'], $this->config->allowedTags) ->remove(implode(',', $this->config->todo->moduleList) . ',uid') ->get(); - if($todo->type != 'custom') + if($todo->type != 'custom' and $todo->type != 'cycle') { $type = $todo->type; $object = $this->loadModel($type)->getByID($objectType);