Ignore:
Timestamp:
10/14/10 10:48:11 (14 years ago)
Author:
eduardoalex
Message:

Ticket #1214 - Correcao do erro narrado no ticket em questão

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/contactcenter/inc/class.so_group.inc.php

    r3344 r3348  
    5555                function insert($data) 
    5656                { 
    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 
    5861                        $shortName = $this -> remove_accents(strtolower(str_replace(" ","", $data['title'])));                   
    5962                         
     
    7376                function update($data) 
    7477                { 
     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 
    7583                        $shortName = $this -> remove_accents(strtolower(str_replace(" ","", $data['title']))); 
    7684                                                 
Note: See TracChangeset for help on using the changeset viewer.