Update app_defaults.php

This commit is contained in:
FusionPBX
2019-03-05 17:32:11 -07:00
committed by GitHub
parent e3ce695f92
commit 1f7d18ba58

View File

@@ -31,7 +31,8 @@ if ($domains_processed == 1) {
$group->defaults();
//create the user view combines username, organization, contact first and last name
$sql = "CREATE OR REPLACE VIEW view_users AS (\n";
$db->exec("DROP VIEW view_users;");
$sql = "CREATE VIEW view_users AS (\n";
$sql .= " select u.domain_uuid, u.user_uuid, d.domain_name, u.username, u.user_enabled, \n";
$sql .= " c.contact_uuid, c.contact_organization, c.contact_name_given, c.contact_name_family,\n";
$sql .= " (\n";