]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 7710: Pref to automatically put me on the CC: list of bugs I change - Patch by...
authorlpsolit%gmail.com <>
Wed, 10 May 2006 07:41:44 +0000 (07:41 +0000)
committerlpsolit%gmail.com <>
Wed, 10 May 2006 07:41:44 +0000 (07:41 +0000)
checksetup.pl
template/en/default/bug/edit.html.tmpl
template/en/default/global/setting-descs.none.tmpl

index d572c2bf3d50c4b7e84904fc3345b6bde11356e6..c3b719c4caeae2d9f0e6e55a9f8c51645b570c79 100755 (executable)
@@ -4441,6 +4441,12 @@ add_setting ("zoom_textareas", {"on" => 1, "off" => 2 }, "on" );
 # 2005-10-21 LpSolit@gmail.com -- Bug 313020
 add_setting('per_bug_queries', {'on' => 1, 'off' => 2}, 'on');
 
+# 2006-05-01 olav@bkor.dhs.org -- Bug 7710
+add_setting('state_addselfcc', {'always' => 1,
+                                'never' => 2,
+                                'cc_unless_role' => '3'},
+            'cc_unless_role');
+
 ###########################################################################
 # Create Administrator  --ADMIN--
 ###########################################################################
index c2bd1b50b988d00c8820ef2bb0b8c47009a5b484..51f4223f379816a7059ddd4ba38f49c68359d5f0 100644 (file)
   %]
 
   [% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
+    [% has_role = bug.user.isreporter
+                  || bug.assigned_to.id == user.id
+                  || (Param('useqacontact')
+                      && bug.qa_contact
+                      && bug.qa_contact.id == user.id) %]
+
     <br>
-    <input type="checkbox" id="addselfcc" name="addselfcc">
+    <input type="checkbox" id="addselfcc" name="addselfcc"
+      [% " checked=\"checked\""
+           IF user.settings.state_addselfcc.value == 'always'
+              || (!has_role
+                  && user.settings.state_addselfcc.value == 'cc_unless_role') %]>
     <label for="addselfcc">Add [% user.login FILTER html %] to CC list</label>
   [% END %]
   <br>
index a0dbeb1a380def77838226475e353cfb7cde5eac..6962d9ea697a75a86cb1c3ed9f6bb4b5d0f4b161 100644 (file)
@@ -34,5 +34,9 @@
    "next_bug"                         => "Show next $terms.bug in my list",
    "same_bug"                         => "Show the updated $terms.bug",
    "nothing"                          => "Do Nothing",
+   "state_addselfcc"                  => "Automatically add me to the CC list of bugs I change",
+   "always"                           => "Always",
+   "never"                            => "Never",
+   "cc_unless_role"                   => "Only if I have no role on them",
                    } 
 %]