Ignore:
Timestamp:
12/29/10 16:35:46 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1413 - Ajuste para não usar o contato que não possua e-mail

File:
1 edited

Legend:

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

    r3641 r3646  
    362362                        $this->template->set_block('cc_v','buttom_use_contact'); 
    363363 
     364                        $email_to = ""; 
     365 
    364366                        switch ($params['catalog']){ 
    365367 
     
    387389                                                                $this->template->set_var('lang_lastname',$result['family_names']); 
    388390                                                                 
    389                                                                 $email_to = ""; 
    390391                                                                $var_phone = ""; 
    391392                                                                $var_email = ""; 
     
    406407                                                                endforeach; 
    407408                                                                 
    408                                                                 if ( !empty($email_to)){ 
    409                                                                         $this->template->set_var('email_to', $email_to); 
    410                                                                         $this->template->parse("buttom_use","buttom_use_contact"); 
    411                                                                 } 
    412                                                                  
    413409                                                                $this->template->set_var('lang_title_email',lang("Email")); 
    414410                                                                $this->template->set_var('lang_email',$var_email); 
     
    432428                                                                $data   = $this->bo->bo->get_contacts_by_group($params['id']); 
    433429                                                                 
     430                                                                $email_to = '<'.$result['short_name'].'>'; 
     431                                                                 
    434432                                                                $this->template->set_var('gr_name', $result['title']); 
    435                                                                 $this->template->set_var('email_to', '<'.$result['short_name'].'>'); 
     433                                                                $this->template->set_var('email_to', $email_to); 
    436434 
    437435                                                                $this->template->set_var('lang_title_name',lang("Name")); 
     
    444442                                                                        $this->template->fp('group_rows','group_row',True); 
    445443                                                                } 
     444 
     445                                                                $this->template->set_var('email_to', $email_to); 
     446                                                                $this->template->parse("buttom_use","buttom_use_contact"); 
    446447                                                                 
    447448                                                                $this->template->parse("row_body","group"); 
     
    467468                                                                        $this->template->set_var('lang_lastname',$result['family_names'][0]); 
    468469                                                                         
    469                                                                         $email_to = ""; 
    470470                                                                        $var_phone = ""; 
    471471                                                                        $var_email = ""; 
     
    503503                        } 
    504504 
     505                        if ( !empty($email_to)){ 
     506                                $this->template->set_var('email_to', $email_to); 
     507                                $this->template->parse("buttom_use","buttom_use_contact"); 
     508                        } 
     509 
    505510                        $this->template->set_var('lang_contact_title',lang("context contact")); 
    506511                        $this->template->set_var('lang_back',lang("back")); 
Note: See TracChangeset for help on using the changeset viewer.