]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1328665 - Two issues with Project Review form for RRAs
authorDavid Lawrence <dkl@mozilla.com>
Wed, 4 Jan 2017 22:22:13 +0000 (22:22 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 4 Jan 2017 22:22:13 +0000 (22:22 +0000)
extensions/MozProjectReview/Extension.pm

index 3c3940ef6c439052855324e36f1b445637f5c217..29d709ff49bf719112b7afb325b6fd86312801af 100644 (file)
@@ -40,11 +40,11 @@ sub post_bug_after_creation {
     my $do_sec_review = 0;
     my @sec_review_needed = (
         'Engaging a new vendor company',
-        'Engaging an individual (independent contractor, temp agency worker, incorporated)',
         'Adding a new SOW with a vendor',
         'Extending a SOW or renewing a contract',
         'Purchasing software',
         'Signing up for an online service',
+        'Other'
     );
     if ((any { $_ eq $params->{contract_type} } @sec_review_needed)
         || $params->{mozilla_data} eq 'Yes') {
@@ -65,7 +65,7 @@ sub post_bug_after_creation {
 
     if ($do_sec_review) {
         $child_params->{'bug_data'} = {
-            short_desc   => 'RRA: ' . $bug->short_desc,
+            short_desc   => 'RRA: ' . $params->{contract_type} . ' with ' . $params->{other_party},
             product      => 'Enterprise Information Security',
             component    => 'Rapid Risk Analysis',
             bug_severity => 'normal',
@@ -81,7 +81,7 @@ sub post_bug_after_creation {
     }
 
     $child_params->{'bug_data'} = {
-        short_desc   => 'Finance Review: ' . $bug->short_desc,
+        short_desc   => 'Finance Review: ' . $params->{contract_type} . ' with ' . $params->{other_party},
         product      => 'Finance',
         component    => 'Purchase Request Form',
         bug_severity => 'normal',