From 6875e1077b3faaf32b613e1ea6a378eaf2a8ecf9 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sat, 24 Apr 2010 14:38:35 +0000 Subject: [PATCH] * fix bug #49. --- module/story/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/story/model.php b/module/story/model.php index 8f61bf6f60..19f3d71a4b 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -97,6 +97,7 @@ class storyModel extends model ->cleanInt('product,module,pri,plan') ->cleanFloat('estimate') ->stripTags('title') + ->callFunc('title', 'trim') ->setDefault('plan', 0) ->add('openedBy', $this->app->user->account) ->add('openedDate', $now) @@ -133,6 +134,7 @@ class storyModel extends model $story = fixer::input('post') ->stripTags('title') + ->callFunc('title', 'trim') ->add('lastEditedBy', $this->app->user->account) ->add('lastEditedDate', $now) ->setIF($this->post->assignedTo != $oldStory->assignedTo, 'assignedDate', $now)