summaryrefslogtreecommitdiffstats
path: root/extensions/UserStory/template
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@redhat.com>2014-06-05 19:22:03 +0200
committerDavid Lawrence <dkl@redhat.com>2014-06-05 19:22:03 +0200
commitdb715a7d254db5ad95e54338b3fb96fd610b94f7 (patch)
tree23ecd3f4c9bf60b08c8047739638900601c6acba /extensions/UserStory/template
parentb56bcda54cdee40c994751f4a72a152a3dd6df94 (diff)
downloadbugzilla-db715a7d254db5ad95e54338b3fb96fd610b94f7.tar.gz
bugzilla-db715a7d254db5ad95e54338b3fb96fd610b94f7.tar.xz
Bug 1019747: New user story field in Tracking product is getting copied from Description, not User Story when cloning
Diffstat (limited to 'extensions/UserStory/template')
-rw-r--r--extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl b/extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
index cd05d84de..594e854b1 100644
--- a/extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
+++ b/extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
@@ -20,14 +20,16 @@
</span>
</div>
<div id="user_story_edit_container" class="bz_default_hidden">
- [% INCLUDE global/textarea.html.tmpl
+ [% user_story_default = cloned_bug ? cloned_bug.cf_user_story : "" %]
+ [% INCLUDE global/textarea.html.tmpl
name = 'cf_user_story'
id = 'user_story'
minrows = 10
maxrows = 10
cols = constants.COMMENT_COLS
disabled = 1
- %]
+ defaultcontent = user_story_default
+ %]
</div>
<script type="text/javascript">
var user_story_components = [];