Ignore:
Timestamp:
12/21/10 10:47:53 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1412 - Correcao de bug em cast e remocao do botao remover para ldap.

File:
1 edited

Legend:

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

    r3605 r3615  
    133133                        $this->template->set_var("actual_catalog",$this->page_info["actual_catalog"]); 
    134134                        $this->template->set_var("next_max_results",$this->page_info["actual_max_contacts"]+10); 
     135                        $this->template->set_var("show_actions",strpos($this->page_info["actual_catalog"],"ldap")===false? 
     136                                                                                                                "block":"none"); 
    135137                        $this->template->set_var("contacts_request_from", 
    136138                                                                                $this->page_info["request_from"]==null? 
     
    224226                        $status = $this->bo->remove_multiple_entries($params['contacts']); 
    225227                         
    226                         $type = $this->page_info['actual_catalog']==='bo_people_catalog'?"contacts":"groups"; 
     228                        $type = $this->page_info['actual_catalog']!=='bo_group_manager'?"contacts":"groups"; 
    227229                         
    228230                        if($status['success']) 
     
    253255                                                                                 
    254256                                        if($contact["catalog"]!=="bo_group_manager") {  //Contatos               
    255                                                 $id=$contact["catalog"]==="bo_people_catalog"?$contact["id_contact"]:$contact['uidnumber'][0]; 
     257                                                $id=strpos($contact["catalog"],"ldap")===false?$contact["id_contact"]:$contact['uidnumber'][0]; 
    256258                                                 
    257259                                                $mail = $contact["connections"]["connection1"]["connection_value"];//Preciso o mail depois 
     
    259261                                                                                $contact["names_ordered"][0]:$contact["names_ordered"]; 
    260262                                                if(($contact["connections"]["connection1"]["connection_value"]==null ||  
    261                                                                                 $contact["connections"]["connection1"]["id_type"]!=="1") 
     263                                                                                (string)$contact["connections"]["connection1"]["id_type"]!=="1") 
    262264                                                                                && isset($request_from)) //Se vier de outro módulo e não possuir e-mail, não mostre. 
    263265                                                        continue; 
     
    270272                                                                        $functions->strach_string( 
    271273                                                                                ($contact["connections"]["connection1"]["connection_value"]!=null &&  
    272                                                                                 $contact["connections"]["connection1"]["id_type"]==="1")? 
     274                                                                                (string)$contact["connections"]["connection1"]["id_type"]==="1")? 
    273275                                                                                        $contact["connections"]["connection1"]["connection_value"]:" ",20)); 
    274276                                                $p->set_var('tel',$functions->strach_string($contact["connections"]["connection1"]["id_type"]==="2"? 
Note: See TracChangeset for help on using the changeset viewer.