From bbfe628a32165fe08e37238dacc8a064d55eec59 Mon Sep 17 00:00:00 2001 From: Vikky Omkar Date: Thu, 9 Apr 2020 11:30:07 +0530 Subject: [PATCH] Templating: Fix global variable "__org.id" (#23362) * Fixed global variable __org.id value * correct orgId value * reverted the change as variables moved to new file --- public/app/features/variables/state/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/variables/state/actions.ts b/public/app/features/variables/state/actions.ts index 5fe5c51dd01..594d6addf75 100644 --- a/public/app/features/variables/state/actions.ts +++ b/public/app/features/variables/state/actions.ts @@ -97,7 +97,7 @@ export const completeDashboardTemplating = (dashboard: DashboardModel): ThunkRes templateSrv.setGlobalVariable('__org', { value: { name: contextSrv.user.orgName, - id: contextSrv.user.id, + id: contextSrv.user.orgId, toString: function() { return this.id; },