mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update ivr_menus.php fix show all
This commit is contained in:
@@ -98,9 +98,11 @@
|
|||||||
|
|
||||||
//prepare to page the results
|
//prepare to page the results
|
||||||
$sql = "select count(*) from v_ivr_menus ";
|
$sql = "select count(*) from v_ivr_menus ";
|
||||||
$sql .= "where true ";
|
if ($show == "all" && permission_exists('ivr_menu_all')) {
|
||||||
if (!empty($show) && $show != "all" || !permission_exists('ivr_menu_all')) {
|
$sql .= "where true ";
|
||||||
$sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) ";
|
}
|
||||||
|
else {
|
||||||
|
$sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) ";
|
||||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||||
}
|
}
|
||||||
if (!empty($search)) {
|
if (!empty($search)) {
|
||||||
@@ -129,9 +131,11 @@
|
|||||||
|
|
||||||
//get the list
|
//get the list
|
||||||
$sql = "select * from v_ivr_menus ";
|
$sql = "select * from v_ivr_menus ";
|
||||||
$sql .= "where true ";
|
if ($show == "all" && permission_exists('ivr_menu_all')) {
|
||||||
if (!empty($show) && $show != "all" || !permission_exists('ivr_menu_all')) {
|
$sql .= "where true ";
|
||||||
$sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) ";
|
}
|
||||||
|
else {
|
||||||
|
$sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) ";
|
||||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||||
}
|
}
|
||||||
if (!empty($search)) {
|
if (!empty($search)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user