Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
fb7b4754
Commit
fb7b4754
authored
Jun 19, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backend: Load dashboards with capital letters in the dashboard url slug (url id), Fixes #2163
parent
26e5d7a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
CHANGELOG.md
+1
-0
pkg/api/dashboard.go
+2
-1
No files found.
CHANGELOG.md
View file @
fb7b4754
...
...
@@ -30,6 +30,7 @@
**Fixes**
-
[
Issue #2185
](
https://github.com/grafana/grafana/issues/2185
)
. Graph: fixed PNG rendering of panels with legend table to the right
-
[
Issue #2163
](
https://github.com/grafana/grafana/issues/2163
)
. Backend: Load dashboards with capital letters in the dashboard url slug (url id)
# 2.0.3 (unreleased - 2.0.x branch)
...
...
pkg/api/dashboard.go
View file @
fb7b4754
...
...
@@ -4,6 +4,7 @@ import (
"encoding/json"
"os"
"path"
"strings"
"github.com/grafana/grafana/pkg/api/dtos"
"github.com/grafana/grafana/pkg/bus"
...
...
@@ -31,7 +32,7 @@ func isDasboardStarredByUser(c *middleware.Context, dashId int64) (bool, error)
func
GetDashboard
(
c
*
middleware
.
Context
)
{
metrics
.
M_Api_Dashboard_Get
.
Inc
(
1
)
slug
:=
c
.
Params
(
":slug"
)
slug
:=
strings
.
ToLower
(
c
.
Params
(
":slug"
)
)
query
:=
m
.
GetDashboardQuery
{
Slug
:
slug
,
OrgId
:
c
.
OrgId
}
err
:=
bus
.
Dispatch
(
&
query
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment