When disabling call forward do not remove the call forward destination number only disable it.

This commit is contained in:
Mark Crane
2014-11-18 10:38:11 +00:00
parent 3f603e664f
commit 394c03faa9

View File

@@ -91,7 +91,9 @@ include "root.php";
//update the extension
$sql = "update v_extensions set ";
if (strlen($this->forward_all_destination) == 0 || $this->forward_all_enabled == "false") {
$sql .= "forward_all_destination = null, ";
if (strlen($this->forward_all_destination) == 0) {
$sql .= "forward_all_destination = null, ";
}
$sql .= "dial_string = null, ";
$sql .= "forward_all_enabled = 'false' ";
}