diff options
author | David Lawrence <dkl@redhat.com> | 2014-06-05 19:22:03 +0200 |
---|---|---|
committer | David Lawrence <dkl@redhat.com> | 2014-06-05 19:22:03 +0200 |
commit | db715a7d254db5ad95e54338b3fb96fd610b94f7 (patch) | |
tree | 23ecd3f4c9bf60b08c8047739638900601c6acba | |
parent | b56bcda54cdee40c994751f4a72a152a3dd6df94 (diff) | |
download | bugzilla-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
-rwxr-xr-x | enter_bug.cgi | 3 | ||||
-rw-r--r-- | extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 4866fdf28..4a3155e42 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -294,6 +294,9 @@ if ($cloned_bug_id) { $vars->{'comment_is_private'} = $isprivate; } + # BMO Bug 1019747 + $vars->{'cloned_bug'} = $cloned_bug; + } # end of cloned bug entry form else { 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 = []; |