Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-31202] Fixing "enlarge" trend graph bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminfuchs committed Jul 18, 2016
1 parent e577749 commit b76b62e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -174,7 +174,7 @@ public String getTrendName() {
*/
@Deprecated
public final AbstractProject<?, ?> getProject() {
return (AbstractProject<?, ?>) getOwner();
return owner instanceof AbstractProject ? (AbstractProject<?, ?>) owner : null;
}

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

Expand Up @@ -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. -->
Expand Down

0 comments on commit b76b62e

Please sign in to comment.