[FIXED HUDSON-6849]

Go to getDescriptorByName rather than getDescriptor to get the help files. This is useful in
situations where Hudson instance is not the root of the webapp.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32272 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
km committed 2010-06-24 23:03:56 +00:00
1 parent 2ccc5f4883
commit f1b4cf47de
1 file changed
+1 -1
@@ -504,7 +504,7 @@ public abstract class Descriptor<T extends Describable<T>> implements Saveable {
*/
public String getHelpFile(final String fieldName) {
for(Class c=clazz; c!=null; c=c.getSuperclass()) {
String page = "/descriptor/" + clazz.getName() + "/help";
String page = "/descriptorByName/" + clazz.getName() + "/help";
String suffix;
if(fieldName==null) {
suffix="";