Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-12-26 18:23:44 +0000
committerfbecker2010-12-26 18:23:44 +0000
commit709f7bb411d187d839a693655baee072f10df570 (patch)
treee6f4efca6a578b6a564102cb1355e250af4b5233 /org.eclipse.mylyn.bugzilla.ui
parentebbe4cb242d9a5d660151a3ef290189a6f6e46c7 (diff)
downloadorg.eclipse.mylyn.tasks-709f7bb411d187d839a693655baee072f10df570.tar.gz
org.eclipse.mylyn.tasks-709f7bb411d187d839a693655baee072f10df570.tar.xz
org.eclipse.mylyn.tasks-709f7bb411d187d839a693655baee072f10df570.zip
ASSIGNED - bug 333213: query form page preselects wrong constraint type
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333213
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
index fad81b899..093e4f6a7 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
@@ -1421,10 +1421,10 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
sb.append("=1"); //$NON-NLS-1$
}
}
- sb.append("&emailtype1="); //$NON-NLS-1$
- sb.append(emailOperationValues[emailOperation.getSelectionIndex()]);
- appendToBuffer(sb, "&email1=", emailPattern.getText()); //$NON-NLS-1$
}
+ sb.append("&emailtype1="); //$NON-NLS-1$
+ sb.append(emailOperationValues[emailOperation.getSelectionIndex()]);
+ appendToBuffer(sb, "&email1=", emailPattern.getText()); //$NON-NLS-1$
}
if (emailPattern2.getText() != null && !emailPattern2.getText().trim().equals("")) { //$NON-NLS-1$
@@ -1443,10 +1443,10 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
sb.append("=1"); //$NON-NLS-1$
}
}
- sb.append("&emailtype2="); //$NON-NLS-1$
- sb.append(emailOperationValues[emailOperation2.getSelectionIndex()]);
- appendToBuffer(sb, "&email2=", emailPattern2.getText()); //$NON-NLS-1$
}
+ sb.append("&emailtype2="); //$NON-NLS-1$
+ sb.append(emailOperationValues[emailOperation2.getSelectionIndex()]);
+ appendToBuffer(sb, "&email2=", emailPattern2.getText()); //$NON-NLS-1$
}
if (daysText.getText() != null && !daysText.getText().equals("")) { //$NON-NLS-1$
@@ -1744,11 +1744,11 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
}
} else if (key.equals("emailtype1")) { //$NON-NLS-1$
int index = 0;
- for (String item : emailOperation.getItems()) {
+ for (; index < emailOperationValues.length; index++) {
+ String item = emailOperationValues[index];
if (item.compareTo(value) == 0) {
break;
}
- index++;
}
if (index < emailOperation.getItemCount()) {
emailOperation.select(index);
@@ -1802,11 +1802,11 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
}
} else if (key.equals("emailtype2")) { //$NON-NLS-1$
int index = 0;
- for (String item : emailOperation2.getItems()) {
+ for (; index < emailOperationValues.length; index++) {
+ String item = emailOperationValues[index];
if (item.compareTo(value) == 0) {
break;
}
- index++;
}
if (index < emailOperation2.getItemCount()) {
emailOperation2.select(index);

Back to the top