diff --git a/trunk/module/story/lang/zh-cn.php b/trunk/module/story/lang/zh-cn.php index 17847b5768..af3233c71e 100644 --- a/trunk/module/story/lang/zh-cn.php +++ b/trunk/module/story/lang/zh-cn.php @@ -100,6 +100,7 @@ $lang->story->replease = '发布计划'; $lang->story->bug = '相关bug'; $lang->story->title = '需求名称'; $lang->story->spec = '需求描述'; +$lang->story->specNote = "建议的需求模板:
作为一个<某种类型的用户>
我要<达成某些目的>
我这么做的原因是<开发的价值>"; $lang->story->type = '需求类型 '; $lang->story->pri = '优先级'; $lang->story->estimate = '预计工时'; diff --git a/trunk/module/story/model.php b/trunk/module/story/model.php index f4484422a4..1870640e91 100644 --- a/trunk/module/story/model.php +++ b/trunk/module/story/model.php @@ -164,7 +164,7 @@ class storyModel extends model $this->dao->update(TABLE_STORY) ->data($story) ->autoCheck() - ->check('title', 'notempty') + ->batchCheck('title,estimate', 'notempty') ->checkIF($story->closedBy, 'closedReason', 'notempty') ->checkIF($story->status == 'closed', 'stage', 'notempty') ->checkIF($story->closedReason == 'duplicate', 'duplicateStory', 'notempty') diff --git a/trunk/module/story/view/change.html.php b/trunk/module/story/view/change.html.php index 3829ce1af9..a2a1dc4108 100644 --- a/trunk/module/story/view/change.html.php +++ b/trunk/module/story/view/change.html.php @@ -37,7 +37,7 @@ story->spec;?> - spec, 'rows=5 class="area-1"');?> + spec, 'rows=5 class="area-1"');?>
story->specNote;?> story->comment;?> diff --git a/trunk/module/story/view/create.html.php b/trunk/module/story/view/create.html.php index a254425d81..530bf86118 100644 --- a/trunk/module/story/view/create.html.php +++ b/trunk/module/story/view/create.html.php @@ -59,7 +59,7 @@ story->spec;?> - +
story->specNote;?> story->mailto;?> diff --git a/trunk/module/story/view/edit.html.php b/trunk/module/story/view/edit.html.php index 7221b14e28..f678b255a3 100644 --- a/trunk/module/story/view/edit.html.php +++ b/trunk/module/story/view/edit.html.php @@ -76,6 +76,14 @@ story->stageList, $story->stage, 'class=select-1');?> + + story->pri;?> + story->priList, $story->pri, 'class=select-1');?> + + + story->estimate;?> + estimate, 'class=text-1');?> +
diff --git a/trunk/module/story/view/view.html.php b/trunk/module/story/view/view.html.php index 00c64708d1..300ab6de8d 100644 --- a/trunk/module/story/view/view.html.php +++ b/trunk/module/story/view/view.html.php @@ -96,6 +96,14 @@ story->stage;?> story->stageList[$story->stage];?> + + story->pri;?> + story->priList[$story->pri];?> + + + story->estimate;?> + estimate;?> +