From 834a6eb86549d92f65a72d1dd9aacb1bd0648582 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Wed, 26 Oct 2011 17:38:51 -0700 Subject: [PATCH] GitHub has changed the element ID --- src/main/java/org/kohsuke/github/GHRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 3120ee1eb..db1d37e18 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -190,9 +190,9 @@ public class GHRepository { public void setEmailServiceHook(String address) throws IOException { WebClient wc = root.createWebClient(); HtmlPage pg = (HtmlPage)wc.getPage(getUrl()+"/admin"); - HtmlInput email = (HtmlInput)pg.getElementById("Email_address"); + HtmlInput email = (HtmlInput)pg.getElementById("email_address"); email.setValueAttribute(address); - HtmlCheckBoxInput active = (HtmlCheckBoxInput)pg.getElementById("Email[active]"); + HtmlCheckBoxInput active = (HtmlCheckBoxInput)pg.getElementById("email[active]"); active.setChecked(true); final HtmlForm f = email.getEnclosingFormOrDie();