Changeset 3211 for branches/2.2/contactcenter
- Timestamp:
- 09/02/10 14:54:07 (14 years ago)
- Location:
- branches/2.2/contactcenter/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/contactcenter/inc/class.bo_catalog_group_catalog.inc.php
r285 r3211 71 71 72 72 */ 73 function find($what, $rules, $other )73 function find($what, $rules, $other, $recursive=false) 74 74 { 75 75 if ($ldap_info = $this->catalog['ldap']) 76 76 { 77 77 $meta_catalog =& CreateObject('contactcenter.bo_global_ldap_catalog',$ldap_info['id_source'], $ldap_info['context'], $this->external); 78 return $meta_catalog->find($what, $rules, $other );78 return $meta_catalog->find($what, $rules, $other, false, $recursive); 79 79 } 80 80 … … 95 95 } 96 96 97 $temp_res = $this->bo_contactcenter->catalog->find($what, $rules, $other );97 $temp_res = $this->bo_contactcenter->catalog->find($what, $rules, $other, false, $recursive); 98 98 if (is_array($temp_res) and count($temp_res)) 99 99 { -
branches/2.2/contactcenter/inc/class.bo_contactcenter.inc.php
r1598 r3211 206 206 207 207 */ 208 function find($what, $rules=false, $other=false, $area=false )209 { 210 return $this->catalog->find($what, $rules, $other, $area );208 function find($what, $rules=false, $other=false, $area=false, $recursive=false) 209 { 210 return $this->catalog->find($what, $rules, $other, $area, $recursive); 211 211 } 212 212 -
branches/2.2/contactcenter/inc/class.bo_global_ldap_catalog.inc.php
r3135 r3211 113 113 114 114 */ 115 function find($what, $rules=false, $other=false, $area=false )115 function find($what, $rules=false, $other=false, $area=false, $recursive=false) 116 116 { 117 117 $restric_fields = $this->get_restrictions_without_branch($rules); … … 170 170 } 171 171 172 $ldap = $GLOBALS['phpgw']->common->ldapConnect($this->src_info['host'], $this->src_info['acc'], $this->src_info['pw'], $followReferral); 173 $result_r = ldap_search($ldap ,($refer_context ? $refer_context : $this->src_info['context']), $filter, $fields, 0, $this->src_info['max_results']); 172 $ldap = $GLOBALS['phpgw']->common->ldapConnect($this->src_info['host'], $this->src_info['acc'], $this->src_info['pw'], $followReferral); 173 $result_r = $recursive ? ldap_search($ldap ,($refer_context ? $refer_context : $this->src_info['context']), $filter, $fields, 0, $this->src_info['max_results']) : 174 ldap_list($ldap , ($refer_context ? $refer_context : $this->src_info['context']), $filter, $fields, 0, $this->src_info['max_results']); 174 175 175 176 if (!$result_r) -
branches/2.2/contactcenter/inc/class.ui_data.inc.php
r3198 r3211 1393 1393 1394 1394 if($this->page_info['actual_catalog']['class']!='bo_global_ldap_catalog'){ 1395 $final[3][$i][1] = $contact['names_ordered'] ? urldecode( $contact['names_ordered']) : 'none';1395 $final[3][$i][1] = $contact['names_ordered'] ? urldecode(is_array($contact['names_ordered']) ? $contact['names_ordered'][0] : $contact['names_ordered']) : 'none'; 1396 1396 } 1397 1397 else { … … 2897 2897 // Get only this attributes: dn, cn for external catalogs, 2898 2898 // used to restrict the attributes used in filters 2899 $ids = $this->bo->find(array($data['fields']['id'], $data['fields']['search']), $rules, array('order' => $data['fields']['search'], 'sort' => 'ASC') );2899 $ids = $this->bo->find(array($data['fields']['id'], $data['fields']['search']), $rules, array('order' => $data['fields']['search'], 'sort' => 'ASC'), $data['search_for'] != null); 2900 2900 } 2901 2901 else … … 2909 2909 //'contact.account_status', 2910 2910 'contact.account_visible' 2911 ), $rules, array('order' => $data['fields']['search'], 'sort' => 'ASC'), $data['search_for_area'] );2911 ), $rules, array('order' => $data['fields']['search'], 'sort' => 'ASC'), $data['search_for_area'], $data['search_for'] != null ); 2912 2912 } 2913 2913
Note: See TracChangeset
for help on using the changeset viewer.