Fixed call center queue agents table (#6746)

* Update destination_edit.php

* Fixed php 8.1 errors

* Fixed cdr recording download not working

* Update call_center_queue_edit.php

* Update call_center_queue_edit.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
This commit is contained in:
Alex
2023-06-06 11:31:22 -06:00
committed by GitHub
parent b14fde8eec
commit 22a01b147d
4 changed files with 6 additions and 5 deletions

View File

@@ -66,7 +66,7 @@
//get total destination count from the database, check limit, if defined
if (!permission_exists('destination_domain')) {
if ($action == 'add') {
if ($_SESSION['limit']['destinations']['numeric'] != '') {
if (!empty($_SESSION['limit']['destinations']['numeric'])) {
$sql = "select count(*) from v_destinations where domain_uuid = :domain_uuid ";
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
$database = new database;
@@ -1071,7 +1071,7 @@
$select_style = $select_style ?? '';
//pre-populate the form
if (!empty($_GET["id"]) > 0 && empty($_POST["persistformvar"])) {
if (!empty($_GET["id"]) && empty($_POST["persistformvar"])) {
if (is_uuid($_GET["id"])) {
$destination_uuid = $_GET["id"];
$sql = "select * from v_destinations ";