From 80d69c28f7eee95d488b009058465e7bce341ce9 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 22 Mar 2015 03:33:37 +0000 Subject: [PATCH] Set the user_context on an call flows to the domain name for single tenant. --- app/call_flows/call_flow_edit.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index d92bbf767d..e4d7434f7a 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -75,12 +75,7 @@ else { //set the context for users that are not in the superadmin group if (!if_group("superadmin")) { - if (count($_SESSION["domains"]) > 1) { - $call_flow_context = $_SESSION['domain_name']; - } - else { - $call_flow_context = "default"; - } + $call_flow_context = $_SESSION['domain_name']; } } @@ -406,12 +401,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { //set the context for users that are not in the superadmin group if (strlen($call_flow_context) == 0) { - if (count($_SESSION["domains"]) > 1) { - $call_flow_context = $_SESSION['domain_name']; - } - else { - $call_flow_context = "default"; - } + $call_flow_context = $_SESSION['domain_name']; } //show the header