Skip to content

Commit

Permalink
[FIXED JENKINS-22856] Uses AbstractProject instead of Item in Descrip…
Browse files Browse the repository at this point in the history
…tor.doCheckProjects. It can be get confused with JobPropertyImpl.getJobOverrides or /lib/form/withCustomDescriptorByName.
  • Loading branch information
ikedam committed May 19, 2014
1 parent 6ffdde8 commit 44f814f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -530,7 +530,7 @@ public List<Descriptor<AbstractBuildParameterFactory>> getBuilderConfigFactoryDe
*
* Copied from hudson.tasks.BuildTrigger.doCheck(Item project, String value)
*/
public FormValidation doCheckProjects(@AncestorInPath Item project, @QueryParameter String value ) {
public FormValidation doCheckProjects(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String value ) {
// Require CONFIGURE permission on this project
if(!project.hasPermission(Item.CONFIGURE)){
return FormValidation.ok();
Expand Down

0 comments on commit 44f814f

Please sign in to comment.