Closed Bug 1019747 Opened 10 years ago Closed 10 years ago

New user story field in Tracking product is getting copied from Description, not User Story when cloning

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbialer, Assigned: dkl)

Details

Attachments

(1 file)

Clone an existing bug.  Instead of the user story clone, the description field is being put into the user story field.

Based on Bug 967793 work.
Over to BMO.

Gerv
Assignee: extensions → nobody
Component: Extensions → Extensions: Other
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Version: unspecified → Production
Assignee: nobody → dkl
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Attached patch 1019747_1.patchSplinter Review
Attachment #8434390 - Flags: review?(glob)
Comment on attachment 8434390 [details] [diff] [review]
1019747_1.patch

Review of attachment 8434390 [details] [diff] [review]:
-----------------------------------------------------------------

r=glob

::: enter_bug.cgi
@@ +223,4 @@
>  $vars->{'qa_contact'}           = formvalue('qa_contact');
>  $vars->{'qa_contact_disabled'}  = !$has_editbugs;
>  
> +$vars->{'cloned_bug'}            = $cloned_bug;

this should be moved to within the if ($cloned_bug_id) block as it isn't required most of the time.

::: extensions/UserStory/template/en/default/hook/bug/create/create-after_custom_fields.html.tmpl
@@ +23,5 @@
> +        [% IF cloned_bug %]
> +          [% user_story_default = cloned_bug.cf_user_story %]
> +        [% ELSE %]
> +          [% user_story_default = "" %]
> +        [% END %]

nit: might be tidier as:
[% user_story_default = cloned_bug ? cloned_bug.cf_user_story : "" %]
Attachment #8434390 - Flags: review?(glob) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   b56bcda..db715a7  master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: Extensions: Other → Extensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: