From 60856cc6f54e03b76f55adbb04a4fb452dddd17c Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Tue, 5 May 2015 16:45:35 +0000 Subject: [PATCH] Extensions: Only show Call Control button on edit. --- app/extensions/extension_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index ae0ff40c5c..637dd495c8 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -860,10 +860,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } echo "\n"; echo " \n"; - if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) { + if ($action == 'update' && (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb'))) { echo " \n"; } - if ($action != "add") { + if ($action == "update") { echo " \n"; } echo " \n";