Fix default dashboard identification

Change-Id: I5726cbad0975de3d995f699807b3dbb07980a3be
This commit is contained in:
Martin Fick
2012-11-30 15:23:42 -07:00
parent a78f2db980
commit 106b8f9631

View File

@@ -163,7 +163,8 @@ class DashboardsCollection implements
DashboardInfo info = new DashboardInfo(refName, path);
info.title = config.getString("dashboard", null, "title");
info.description = config.getString("dashboard", null, "description");
info.isDefault = setDefault ? (info.id.equals(defaultOf(project)) ? true : null) : null;
String id = refName + ":" + path;
info.isDefault = setDefault ? (id.equals(defaultOf(project)) ? true : null) : null;
info.foreach = config.getString("dashboard", null, "foreach");
UrlEncoded u = new UrlEncoded("/dashboard/");