Changeset 1452


Ignore:
Timestamp:
09/25/09 15:01:57 (15 years ago)
Author:
viani
Message:

Ticket #637 - Inclusao de variavel de sessao para funcionar o Voip.

Location:
trunk/workflow
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.bo_userinterface.inc.php

    r1451 r1452  
    11151115                $voip_enabled = false; 
    11161116                $voip_groups = array(); 
    1117                 if ( $GLOBALS['phpgw_info']['server']['voip_groups'] ) 
    1118                 { 
    1119                         foreach ( explode(",",$GLOBALS['phpgw_info']['server']['voip_groups']) as $i => $voip_group ) 
     1117                if ( $_SESSION['phpgw_info']['workflow']['voip_groups'] ) 
     1118                { 
     1119                        foreach ( explode(",",$_SESSION['phpgw_info']['workflow']['voip_groups']) as $i => $voip_group ) 
    11201120                        { 
    11211121                                $a_voip = explode(";",$voip_group); 
     
    11231123                        } 
    11241124 
    1125                         foreach($GLOBALS['phpgw']->accounts->membership() as $idx => $group) 
     1125                        foreach($_SESSION['phpgw_info']['workflow']['user_groups'] as $idx => $group) 
    11261126                        { 
    1127                                 if(array_search($group['account_name'],$voip_groups) !== FALSE) 
     1127                                if(array_search($group,$voip_groups) !== FALSE) 
    11281128                                { 
    11291129                                        $voip_enabled = true; 
  • trunk/workflow/inc/class.ui_ajaxinterface.inc.php

    r795 r1452  
    7070                $_SESSION['phpgw_info']['workflow']['user_can_clean_aborted_instances'] = $_SESSION['phpgw_info']['workflow']['user_can_monitor']; 
    7171                $_SESSION['phpgw_info']['workflow']['user']['preferences'] = $GLOBALS['phpgw_info']['user']['preferences']['workflow']; 
     72                $_SESSION['phpgw_info']['workflow']['voip_groups'] = $GLOBALS['phpgw_info']['server']['voip_groups']; 
    7273        } 
    7374 
  • trunk/workflow/js/userinterface/orgchart.js

    r1451 r1452  
    354354                        else 
    355355                        { 
    356                                 content += '<a href="javascript:void(0);" onclick="callVoipConnect(\''+employees[i]['telephoneNumber']+'\')"'; 
     356                                content += '<a href="javascript:void(0);" title="Discar para Telefone Comercial" onclick="callVoipConnect(\''+employees[i]['telephoneNumber']+'\')"'; 
    357357                                content += '>' + employees[i]['telephoneNumber'] + '</a>'; 
    358358                        } 
     
    648648                        var phoneNumber = card_data[ 'Telefone' ]; 
    649649                        if ( workflowUserInterfaceClickToCall ) 
     650                        { 
     651                                phone.title = "Discar para Telefone Comercial" 
    650652                                phone.onclick = function( ) 
    651653                                { 
    652654                                        callVoipConnect( phoneNumber ); 
    653655                                } 
     656                        } 
    654657 
    655658                        card.appendChild( phone ); 
Note: See TracChangeset for help on using the changeset viewer.