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

Location:
branches/2.2/contactcenter
Files:
4 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                                                 
  • branches/2.2/contactcenter/inc/class.ui_data.inc.php

    r3341 r3348  
    19291929                        { 
    19301930                                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'), 
    19321932                                        'status' => 'error' 
    19331933                                )); 
  • branches/2.2/contactcenter/js/ccAddGroup.js

    r294 r3348  
    126126                        if (data['status'] != 'ok') 
    127127                        { 
     128                                showMessage(data['msg']); 
    128129                                return; 
    129130                        } 
Note: See TracChangeset for help on using the changeset viewer.