Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-31202] Fixing "enlarge" trend graph bug.
  • Loading branch information
benjaminfuchs committed Jul 18, 2016
1 parent e577749 commit b76b62e9a704a8043925d82ce3ba26baf4b7b096
@@ -174,7 +174,7 @@ public String getTrendName() {
*/
@Deprecated
public final AbstractProject<?, ?> getProject() {
return (AbstractProject<?, ?>) getOwner();
return owner instanceof AbstractProject ? (AbstractProject<?, ?>) owner : null;
}

/**
@@ -92,7 +92,7 @@ public String getTrendGraphId() {
*/
@Deprecated
public AbstractProject<?, ?> getProject() {
return (AbstractProject<?, ?>) owner;
return owner instanceof AbstractProject ? (AbstractProject<?, ?>) owner : null;
}
}

@@ -3,7 +3,7 @@
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"
xmlns:i="jelly:fmt" xmlns:u="/util">
<l:layout norefresh="true">
<st:include it="${it.project}" page="sidepanel.jelly" />
<st:include it="${it.owner}" page="sidepanel.jelly" />
<l:main-panel>
<!-- Note that the parameter url=${trendGraphId} is not used by the graph: it
has been added to provide different URLs so that the images are not cached by the browser. -->

0 comments on commit b76b62e

Please sign in to comment.