nwaycn / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Extensions not listed in contact field when adding an agent using mod_callcenter #510

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to add an agent to a queue
2. In the Contact dropdown field Extensions is missing

In revision 4774 a new if condition seems to have been added at line to 
resources/switch.php 701:

  if ($select_type == "dialplan" || $select_type == "ivr") { <<<<<<<<
                        $sql = "select * from v_extensions ";
                        $sql .= "where domain_uuid = '$domain_uuid' ";
                        $sql .= "and enabled = 'true' ";
                        $sql .= "order by extension asc ";
                        $prep_statement = $db->prepare(check_sql($sql));
                        $prep_statement->execute();
                        $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
                        if ($select_type == "dialplan" || $select_type == "ivr" || $select_type == "call_center_contact") {
                                echo "<optgroup label='Extensions'>\n";
                        }

This does not include any match for $select_type equalling call_center_contact.

Original issue reported on code.google.com by Digitald...@gmail.com on 26 Nov 2013 at 11:08

GoogleCodeExporter commented 9 years ago
Thanks for reporting so that it can be fixed.

Original comment by markjcrane@gmail.com on 26 Nov 2013 at 5:04