mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Fix. Create needed number of extensions (#2509)
This commit is contained in:
committed by
FusionPBX
parent
84746bf115
commit
cc262b83e4
@@ -267,7 +267,7 @@
|
||||
|
||||
//build the data array
|
||||
if (!isset($range)) { $range = 1; }
|
||||
for ($i=0; $i<=$range; $i++) {
|
||||
for ($i=0; $i<$range; $i++) {
|
||||
|
||||
//check if the extension exists
|
||||
if ($action == "add" && extension_exists($extension)) {
|
||||
@@ -368,8 +368,6 @@
|
||||
$array["extensions"][$i]["enabled"] = $enabled;
|
||||
$array["extensions"][$i]["description"] = $description;
|
||||
|
||||
//increment the row id
|
||||
$i++;
|
||||
}
|
||||
|
||||
//add or update voicemail
|
||||
@@ -402,6 +400,7 @@
|
||||
$array["voicemails"][$i]["domain_uuid"] = $domain_uuid;
|
||||
$array["voicemails"][$i]["voicemail_uuid"] = $voicemail_uuid;
|
||||
$array["voicemails"][$i]["voicemail_id"] = $voicemail_id;
|
||||
|
||||
$array["voicemails"][$i]["voicemail_password"] = $voicemail_password;
|
||||
//$array["voicemails"][$i]["greeting_id"] = $greeting_id;
|
||||
//$array["voicemails"][$i]["voicemail_alternate_greet_id"] = $alternate_greet_id;
|
||||
|
||||
Reference in New Issue
Block a user