From 5d33ba3999d68d9abed03e914b3318f1a65a6f21 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 2 Oct 2013 05:53:58 +0000 Subject: [PATCH] Fix a bug that affected adding a hot desking extension. --- app/hot_desking/extension_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hot_desking/extension_edit.php b/app/hot_desking/extension_edit.php index 0ba03403d3..e4d1e6c39a 100644 --- a/app/hot_desking/extension_edit.php +++ b/app/hot_desking/extension_edit.php @@ -121,7 +121,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { unset ($prep_statement); //update the extension and voicemail - if ($action == "update" && permission_exists('extension_edit')) { + if (($action == "add" && permission_exists('extension_add')) || ($action == "update" && permission_exists('extension_edit'))) { //update the extension $sql = "update v_extensions set "; $sql .= "unique_id = '$unique_id' ";