Changeset 3348
- Timestamp:
- 10/14/10 10:48:11 (14 years ago)
- Location:
- branches/2.2/contactcenter
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/contactcenter/inc/class.so_group.inc.php
r3344 r3348 55 55 function insert($data) 56 56 { 57 57 $this->db->query("select * from phpgw_cc_groups where 58 upper(title) like '".strtoupper($data['title'])."' and owner=".$this->owner); 59 if($this->db->next_record()) 60 return false;//Não posso criar grupos com nomes iguais 58 61 $shortName = $this -> remove_accents(strtolower(str_replace(" ","", $data['title']))); 59 62 … … 73 76 function update($data) 74 77 { 78 $this->db->query("select * from phpgw_cc_groups where 79 id_group!='".$data['id_group']."' and 80 upper(title) like '".strtoupper($data['title'])."' and owner=".$this->owner); 81 if($this->db->next_record()) 82 return false;//Não posso criar grupos com nomes iguais 75 83 $shortName = $this -> remove_accents(strtolower(str_replace(" ","", $data['title']))); 76 84 -
branches/2.2/contactcenter/inc/class.ui_data.inc.php
r3341 r3348 1929 1929 { 1930 1930 echo serialize(array( 1931 'msg' => lang('Problems on adding your Contact. No Contact added!'),1931 'msg' => lang('Problems on adding your Group. Be sure that a group with this name do not exists'), 1932 1932 'status' => 'error' 1933 1933 )); -
branches/2.2/contactcenter/js/ccAddGroup.js
r294 r3348 126 126 if (data['status'] != 'ok') 127 127 { 128 showMessage(data['msg']); 128 129 return; 129 130 }
Note: See TracChangeset
for help on using the changeset viewer.