Changeset 702


Ignore:
Timestamp:
03/16/09 11:09:48 (15 years ago)
Author:
niltonneto
Message:

Resolve #450.

Location:
trunk/contactcenter/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/inc/class.bo_group.inc.php

    r2 r702  
    3636                } 
    3737                 
    38                 function get_all_contacts(){ 
     38                function get_all_contacts($field = false){ 
    3939                 
    40                         $result = $this-> so -> selectAllContacts(); 
     40                        $result = $this-> so -> selectAllContacts($field); 
    4141                        return $result; 
    4242                } 
  • trunk/contactcenter/inc/class.so_group.inc.php

    r576 r702  
    110110                 
    111111                 
    112                 function selectAllContacts() 
     112                function selectAllContacts( $field = false ) 
    113113                { 
    114114                                                 
     
    116116                        'phpgw_cc_contact_conns B, phpgw_cc_connections C where '. 
    117117                        'A.id_contact = B.id_contact and B.id_connection = C.id_connection and '. 
    118                         'A.id_owner ='.$this->owner.' and C.connection_is_default = true '. 
    119                         ' order by A.names_ordered,C.connection_value'; 
     118                        'A.id_owner ='.$this->owner.' and C.connection_is_default = true '; 
     119 
     120                        if ( $field == 'only_email' ) 
     121                                $query .= 'and B.id_typeof_contact_connection = 1 '; 
     122 
     123                        $query .= ' order by A.names_ordered,C.connection_value'; 
    120124 
    121125                                         
  • trunk/contactcenter/inc/class.ui_data.inc.php

    r575 r702  
    13651365                        $boGroup = CreateObject('contactcenter.bo_group'); 
    13661366                                                 
    1367                         $all_contacts = $boGroup->get_all_contacts(); 
     1367                        $all_contacts = $boGroup->get_all_contacts('only_email'); 
    13681368                         
    13691369                        $contact_options = ""; 
Note: See TracChangeset for help on using the changeset viewer.