Skip to content
Permalink
Browse files

JENKINS-50924 Fix chart style value comparison

  • Loading branch information...
vgaidarji committed May 5, 2018
1 parent 658edf1 commit 139feff03575821dee52440f19a947489d03dfa8
@@ -299,9 +299,9 @@ public String toString() {
LINE("line"),
LINE_3D("line3d"),
LINE_SIMPLE("lineSimple"),
STACKED_AREA("stackedarea"),
STACKED_BAR("stackedbar"),
STACKED_BAR_3D("stackedbar3d"),
STACKED_AREA("stackedArea"),
STACKED_BAR("stackedBar"),
STACKED_BAR_3D("stackedBar3d"),
WATERFALL("waterfall");

private final String name;
@@ -312,7 +312,7 @@ public String toString() {

static ChartStyle forName(String name) {
for (ChartStyle chartStyle : ChartStyle.values()) {
if (name.equals(chartStyle.name)) {
if (name.equalsIgnoreCase(chartStyle.name)) {
return chartStyle;
}
}
@@ -39,8 +39,8 @@
<f:option value="lineSimple" selected="${plot.style=='lineSimple'}">${%Line simple}</f:option>
<f:option value="line3d" selected="${plot.style=='line3d'}">${%Line 3D}</f:option>
<f:option value="stackedArea" selected="${plot.style=='stackedArea'}">${%Stacked Area}</f:option>
<f:option value="stackedbar" selected="${plot.style=='stackedbar'}">${%Stacked Bar}</f:option>
<f:option value="stackedbar3d" selected="${plot.style=='stackedbar3d'}">${%Stacked Bar 3D}
<f:option value="stackedBar" selected="${plot.style=='stackedBar'}">${%Stacked Bar}</f:option>
<f:option value="stackedBar3d" selected="${plot.style=='stackedBar3d'}">${%Stacked Bar 3D}
</f:option>
<f:option value="waterfall" selected="${plot.style=='waterfall'}">${%Waterfall}</f:option>
</select>

0 comments on commit 139feff

Please sign in to comment.
You can’t perform that action at this time.