Hide in the phone directory (#2782)

Hide the extension in the phone directory if Extension -> Directory_Visible = false.
This commit is contained in:
konradSC
2017-08-02 16:31:20 -06:00
committed by FusionPBX
parent b1c5d870e0
commit 37a1cb5b6a
@@ -877,6 +877,7 @@ include "root.php";
$sql .= "from v_extensions ";
$sql .= "where domain_uuid = '".$domain_uuid."' ";
$sql .= "and enabled = 'true' ";
$sql .= "and directory_visible = 'true' ";
$sql .= "order by number_alias, extension asc ";
$prep_statement = $this->db->prepare($sql);
if ($prep_statement) {