Changeset 3348 for branches/2.2/contactcenter/inc/class.so_group.inc.php
- Timestamp:
- 10/14/10 10:48:11 (14 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.