Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-10-28 19:55:29 -0400
committermkersten2005-10-28 19:55:29 -0400
commit1a0711beebf26b0474918f92f161bfbf2945458a (patch)
tree7fe30210cd33fa42152ef5c1c4afd4223dbf72f8
parent0947ff29a4d63f78625621d04036a2724abea6c5 (diff)
downloadorg.eclipse.mylyn.tasks-1a0711beebf26b0474918f92f161bfbf2945458a.tar.gz
org.eclipse.mylyn.tasks-1a0711beebf26b0474918f92f161bfbf2945458a.tar.xz
org.eclipse.mylyn.tasks-1a0711beebf26b0474918f92f161bfbf2945458a.zip
Patch for Bugzilla Bug 108305 Commenting from Mylar's Bugzilla UI doesn't update CC
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java
index a261b0c1d..51e281d5b 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java
@@ -969,10 +969,18 @@ public class ExistingBugEditor extends AbstractBugEditor
* @author Wesley Coelho
*/
private void setDefaultCCValue(){
- Attribute attr = bug.getAttributeForKnobName("newcc");
- if(attr != null) {
- if (attr.getNewValue().equals("")){
- attr.setNewValue(BugzillaPreferences.getUserName());
+ Attribute newCCattr = bug.getAttributeForKnobName("newcc");
+ Attribute owner = bug.getAttribute("Assigned To");
+
+ //Don't add the cc if the user is the bug owner
+ if(owner != null && owner.getValue().indexOf(BugzillaPreferences.getUserName()) > -1){
+ return;
+ }
+
+ //Add the user to the cc list
+ if(newCCattr != null) {
+ if (newCCattr.getNewValue().equals("")){
+ newCCattr.setNewValue(BugzillaPreferences.getUserName());
}
}
}

Back to the top