Ignore:
Timestamp:
07/08/10 17:52:20 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Aplicando alterações do branches 2.0 no branches 2.2

File:
1 edited

Legend:

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

    r1690 r3018  
    20722072 
    20732073                        /* Verify Data and performs insertion/update */ 
    2074                         foreach($data as $field => &$value) 
     2074                        foreach($data as $field => $value) 
    20752075                        { 
    20762076                                if ($value == '' or is_null($value)) 
     
    20822082                                switch($field) 
    20832083                                { 
     2084                                        case 'names_ordered': 
     2085                                                $data[$field] = urldecode($value);  
    20842086                                        case 'corporate_name': 
    20852087                                        case 'job_title': 
     
    20892091                                        case 'given_names': 
    20902092                                        case 'family_names': 
    2091                                         case 'names_ordered': 
    20922093                                        case 'pgp_key': 
    20932094                                        case 'notes': 
    2094                                                 /* Do Nothing. This is just to make sure no invalid field is passed */ 
     2095                                                $data[$field] = urldecode($data[$field]); 
    20952096                                                break; 
    20962097 
     
    21672168                                                                if ($value['new_cities'][$type]) 
    21682169                                                                { 
    2169                                                                         $value['new_cities'][$type]['id_state'] = $id_state; 
     2170                                                                        $data[$field]['new_cities'][$type]['id_state'] = $id_state;  
    21702171                                                                } 
    21712172                                                        } 
     
    22032204                        } 
    22042205 
    2205                         $code = '$id = $this->bo->catalog->'; 
    2206  
    22072206                        if (!is_null($id) and $id !== '') 
    22082207                        { 
    2209                                 $code .= $code.'update_single_info($id, $data);'; 
     2208                                $id = $this->bo->catalog->update_single_info($id, $data);  
    22102209                                $result = array( 
    22112210                                        'msg' => lang('Updated Successfully!'), 
     
    22152214                        else 
    22162215                        { 
    2217                                 $code .= 'add_single_entry($data);'; 
     2216                                $id = $this->bo->catalog->add_single_entry($data);  
    22182217                                $result = array( 
    22192218                                        'msg' => lang('Entry Added Successfully!'), 
     
    22212220                                ); 
    22222221                        } 
    2223  
    2224                         eval($code); 
    22252222 
    22262223                        if (!($id)) 
     
    23712368                                        case 'notes': 
    23722369                                        case 'photo': 
    2373                                                 $value = urldecode( $value ); 
    2374                                                 /* Do Nothing. This is just to make sure no invalid field is passed */ 
     2370                                                $data[$field] = urldecode( $value );  
    23752371                                                break; 
    23762372 
Note: See TracChangeset for help on using the changeset viewer.