Changeset 1946

Show
Ignore:
Timestamp:
05/20/06 23:30:44 (3 years ago)
Author:
qldrob
Message:

Apply r1945 to 2.1 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.1/amp_conf/htdocs/admin/modules/core/page.extensions.php

    r1894 r1946  
    105105                        core_devices_add($deviceid,$tech,$dial,$devicetype,$deviceuser,$description,$emergency_cid); 
    106106                        core_users_edit($extdisplay,$_REQUEST,$vmcontext,$incontext,$uservm); 
     107                        // Need to re-propogate all the vm info here, because it could have changed 
     108                        $uservm = getVoicemail(); 
     109                        $vmcontexts = array_keys($uservm); 
     110                        $vm=false; 
     111                        foreach ($vmcontexts as $vmcontext) { 
     112                                if(isset($uservm[$vmcontext][$extdisplay])){ 
     113                                        $incontext = $vmcontext;  //the context for the current extension 
     114                                        $vmpwd = $uservm[$vmcontext][$extdisplay]['pwd']; 
     115                                        $name = $uservm[$vmcontext][$extdisplay]['name']; 
     116                                        $email = $uservm[$vmcontext][$extdisplay]['email']; 
     117                                        $pager = $uservm[$vmcontext][$extdisplay]['pager']; 
     118                                        $options=""; 
     119                                        if (is_array($uservm[$vmcontext][$extdisplay]['options'])) { 
     120                                                $alloptions = array_keys($uservm[$vmcontext][$extdisplay]['options']); 
     121                                                if (isset($alloptions)) { 
     122                                                        foreach ($alloptions as $option) { 
     123                                                                if ( ($option!="attach") && ($option!="envelope") && ($option!="saycid") && ($option!="delete") && ($option!='') ) 
     124                                                                $options .= $option.'='.$uservm[$vmcontext][$extdisplay]['options'][$option].'|'; 
     125                                                        } 
     126                                                        $options = rtrim($options,'|'); 
     127                                                        // remove the = sign if there are no options set 
     128                                                        $options = rtrim($options,'='); 
     129                                                } 
     130                                                extract($uservm[$vmcontext][$extdisplay]['options'], EXTR_PREFIX_ALL, "vmops"); 
     131                                        } 
     132                                        $vm=true; 
     133                                } 
     134                        } 
    107135                        needreload(); 
    108                break; 
     136                break; 
    109137                case "resetall":  //form a url with this option to nuke the AMPUSER & DEVICE trees and start over. 
    110138                        core_users2astdb(); 
  • freepbx/branches/2.1/amp_conf/htdocs/admin/modules/core/page.users.php

    r1897 r1946  
    7878                case "edit": 
    7979                        core_users_edit($extdisplay,$_REQUEST,$vmcontext,$incontext,$uservm); 
     80                        // Need to re-propogate all the vm info here, because it could have changed 
     81                        $uservm = getVoicemail(); 
     82                        $vmcontexts = array_keys($uservm); 
     83                        $vm=false; 
     84                        foreach ($vmcontexts as $vmcontext) { 
     85                                if(isset($uservm[$vmcontext][$extdisplay])){ 
     86                                        $incontext = $vmcontext;  //the context for the current extension 
     87                                        $vmpwd = $uservm[$vmcontext][$extdisplay]['pwd']; 
     88                                        $name = $uservm[$vmcontext][$extdisplay]['name']; 
     89                                        $email = $uservm[$vmcontext][$extdisplay]['email']; 
     90                                        $pager = $uservm[$vmcontext][$extdisplay]['pager']; 
     91                                        $options=""; 
     92                                        if (is_array($uservm[$vmcontext][$extdisplay]['options'])) { 
     93                                                $alloptions = array_keys($uservm[$vmcontext][$extdisplay]['options']); 
     94                                                if (isset($alloptions)) { 
     95                                                        foreach ($alloptions as $option) { 
     96                                                                if ( ($option!="attach") && ($option!="envelope") && ($option!="saycid") && ($option!="delete") && ($option!='') ) 
     97                                                                $options .= $option.'='.$uservm[$vmcontext][$extdisplay]['options'][$option].'|'; 
     98                                                        } 
     99                                                        $options = rtrim($options,'|'); 
     100                                                        // remove the = sign if there are no options set 
     101                                                        $options = rtrim($options,'='); 
     102                                                } 
     103                                                extract($uservm[$vmcontext][$extdisplay]['options'], EXTR_PREFIX_ALL, "vmops"); 
     104                                        } 
     105                                        $vm=true; 
     106                                } 
     107                        } 
    80108                        needreload(); 
    81109                break; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads