* fix the error of story version.

This commit is contained in:
wangchunsheng
2010-02-20 11:47:26 +00:00
parent 47258bf6ee
commit 738af4ab7f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ class testcaseModel extends model
->add('lastEditedBy', $this->app->user->account)
->add('lastEditedDate', $now)
->add('version', $version)
->setIF($this->post->story != $oldCase->story, 'storyVersion', $this->loadModel('story')->getVersion($this->post->story))
->setIF($this->post->story != false and $this->post->story != $oldCase->story, 'storyVersion', $this->loadModel('story')->getVersion($this->post->story))
->setDefault('story', 0)
->stripTags('title')
->remove('comment,steps,expects')