* when link story, store the latest version of the story.

This commit is contained in:
wangchunsheng
2010-02-20 08:53:18 +00:00
parent 8dd09487fe
commit a110027fb8
8 changed files with 25 additions and 3 deletions
+2
View File
@@ -44,6 +44,7 @@ class testcaseModel extends model
->add('openedDate', $now)
->add('status', 'normal')
->add('version', 1)
->setIF($this->post->story != false, 'storyVersion', $this->loadModel('story')->getVersion($this->post->story))
->remove('steps,expects')
->setDefault('story', 0)
->stripTags('title')
@@ -125,6 +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))
->setDefault('story', 0)
->stripTags('title')
->remove('comment,steps,expects')