mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Merge pull request #1459 from moteus/operator_panel_short_number
Fix. Use operator panel with short extension.
This commit is contained in:
@@ -166,9 +166,11 @@ function get_call_activity() {
|
||||
}
|
||||
|
||||
//reindex array using extension instead of auto-incremented value
|
||||
$result = array();
|
||||
foreach ($array as $index => $subarray) {
|
||||
$extension = $subarray['extension'];
|
||||
foreach ($subarray as $field => $value) {
|
||||
$array[$subarray['extension']][$field] = $array[$index][$field];
|
||||
$result[$extension][$field] = $array[$index][$field];
|
||||
unset($array[$index][$field]);
|
||||
}
|
||||
unset($array[$subarray['extension']]['extension']);
|
||||
@@ -176,5 +178,5 @@ function get_call_activity() {
|
||||
}
|
||||
|
||||
//return array
|
||||
return $array;
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user