From 0e6d08a5de32b31979fb36f73e45b438f6413016 Mon Sep 17 00:00:00 2001 From: wyd621 Date: Thu, 20 Mar 2014 01:53:04 +0000 Subject: [PATCH] * fix a bug #581. --- module/todo/model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/todo/model.php b/module/todo/model.php index da6fe23075..0f5f969dda 100644 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -28,7 +28,6 @@ class todoModel extends model ->add('idvalue', 0) ->specialChars('type,name') ->cleanInt('date, pri, begin, end, private') - ->setIF($this->post->type != 'custom', 'name', '') ->setIF($this->post->type == 'bug' and $this->post->bug, 'idvalue', $this->post->bug) ->setIF($this->post->type == 'task' and $this->post->task, 'idvalue', $this->post->task) ->setIF($this->post->date == false, 'date', '2030-01-01')