Changeset 3822


Ignore:
Timestamp:
02/25/11 14:45:24 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1589 - Erro na listagem dos contatos telefone e email não listados

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.ui_mobilecc.inc.php

    r3821 r3822  
    289289 
    290290                            $test = false; 
    291                             if ($conn['connection_is_default']) { 
     291                                                        if ($conn['connection_is_default']) { 
    292292                                $test = true; 
    293                             } 
     293                                                        } 
    294294                            
    295295                            if (is_array($conn)){ 
    296296                                $test = true; 
    297                             } 
    298                             
     297                                                        }else{ 
     298                                                                $test = false; 
     299                                                        } 
    299300                            if ( $test) { 
    300                                 if ( ($conn['id_type'] == 1) ) 
     301                                if ( ($conn['id_type'] == 1) ) 
    301302                                    $mail = $conn['connection_value']; 
    302                                 else if ( ($conn['id_type'] == 2) ) 
     303                                                                else if ( ($conn['id_type'] == 2) ) 
    303304                                    $tel = $conn['connection_value']; 
    304                             } 
     305                                                                 
     306                                                                if ($conn['id_type'] == null){ 
     307                                                                        if ( ($conn['type'] == 'email') ) 
     308                                        $mail = $conn['connection_value']; 
     309                                                                        else if ( ($conn['type'] == 'phone') ) 
     310                                        $tel = $conn['connection_value'];        
     311                                                                         
     312                                                                } 
     313                                                        } 
    305314                                                } 
     315                                                 
    306316 
    307317                                                 
Note: See TracChangeset for help on using the changeset viewer.