Changeset 3595 for branches/2.2/mobile/inc/class.bo_mobilecc.inc.php
- Timestamp:
- 12/16/10 14:59:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.bo_mobilecc.inc.php
r3574 r3595 91 91 'field' => $search, 92 92 'type' => 'iLIKE', 93 'value' => '%'.$name.'%'93 'value' => $name 94 94 )); 95 95 } 96 97 $ids = $this->bo->find($what,$rules); 96 97 98 $ids = $this->bo->find($what,$rules,false,false,true); 98 99 99 100 if(is_array($ids)) { … … 130 131 * ordenação atual se tiverem valores antigos desnecessários 131 132 * causando erro de tamanhos inconsistentes */ 133 $valor['catalog'] = $this->page_info['actual_catalog']; 132 134 $default = array(); 133 135 $type = array(); … … 140 142 }//Fim da ordenação 141 143 } 144 else { 145 $entries = $this->bo->get_multiple_entries($ids,array("id_group"=>true,"title"=>true,"short_name"=>true)); 146 foreach ($entries as &$group) { 147 $group['catalog']=$this->page_info['actual_catalog']; 148 } 149 } 142 150 if($total_count_search>count($ids)) 143 151 $entries["has_more"] = true; … … 197 205 return $retorno; 198 206 } 199 207 208 function remove_multiple_entries($ids) { 209 $errors = array(); 210 $return = array(); 211 if($this->page_info['actual_catalog']==='bo_group_manager') 212 $soGroup = CreateObject('contactcenter.so_group'); 213 foreach($ids as $id) { 214 if($this->page_info['actual_catalog']==='bo_group_manager') { 215 $data = array ('id_group' => $id); 216 $check = $soGroup->delete($data); 217 } 218 else 219 $check = $this->bo->remove_single_entry($id); 220 221 if(!$check) 222 $errors[] = $id; 223 } 224 $return['success'] = empty($errors)?true:false; 225 $return['errors_ids'] = $errors; 226 return $return; 227 } 228 200 229 } 201 230 ?>
Note: See TracChangeset
for help on using the changeset viewer.