Update switch_music_on_hold.php
Fix the alias on the moh sql select string.
This commit is contained in:
@@ -50,8 +50,6 @@ include "root.php";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//it is NOT recommended to use this function if you want to include ringback you should be using the ringback class
|
|
||||||
//see app/ring_groups/ring_group_edit.php for example
|
|
||||||
public function select($name, $selected, $options) {
|
public function select($name, $selected, $options) {
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
@@ -108,8 +106,8 @@ include "root.php";
|
|||||||
|
|
||||||
//get moh records, build array
|
//get moh records, build array
|
||||||
$sql = "select ";
|
$sql = "select ";
|
||||||
$sql .= "(select domain_name from v_domains as d where domain_uuid = m.domain_uuid) as domain_name, * ";
|
$sql .= "(select domain_name from v_domains as d where domain_uuid = s.domain_uuid) as domain_name, * ";
|
||||||
$sql .= "from v_music_on_hold ";
|
$sql .= "from v_music_on_hold as s ";
|
||||||
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";
|
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";
|
||||||
if (permission_exists('music_on_hold_global_view')) {
|
if (permission_exists('music_on_hold_global_view')) {
|
||||||
$sql .= "or domain_uuid is null ";
|
$sql .= "or domain_uuid is null ";
|
||||||
|
|||||||
Reference in New Issue
Block a user