Changeset 3018 for branches/2.2/contactcenter/inc/class.ui_data.inc.php
- Timestamp:
- 07/08/10 17:52:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/contactcenter/inc/class.ui_data.inc.php
r1690 r3018 2072 2072 2073 2073 /* Verify Data and performs insertion/update */ 2074 foreach($data as $field => &$value)2074 foreach($data as $field => $value) 2075 2075 { 2076 2076 if ($value == '' or is_null($value)) … … 2082 2082 switch($field) 2083 2083 { 2084 case 'names_ordered': 2085 $data[$field] = urldecode($value); 2084 2086 case 'corporate_name': 2085 2087 case 'job_title': … … 2089 2091 case 'given_names': 2090 2092 case 'family_names': 2091 case 'names_ordered':2092 2093 case 'pgp_key': 2093 2094 case 'notes': 2094 /* Do Nothing. This is just to make sure no invalid field is passed */2095 $data[$field] = urldecode($data[$field]); 2095 2096 break; 2096 2097 … … 2167 2168 if ($value['new_cities'][$type]) 2168 2169 { 2169 $ value['new_cities'][$type]['id_state'] = $id_state;2170 $data[$field]['new_cities'][$type]['id_state'] = $id_state; 2170 2171 } 2171 2172 } … … 2203 2204 } 2204 2205 2205 $code = '$id = $this->bo->catalog->';2206 2207 2206 if (!is_null($id) and $id !== '') 2208 2207 { 2209 $ code .= $code.'update_single_info($id, $data);';2208 $id = $this->bo->catalog->update_single_info($id, $data); 2210 2209 $result = array( 2211 2210 'msg' => lang('Updated Successfully!'), … … 2215 2214 else 2216 2215 { 2217 $ code .= 'add_single_entry($data);';2216 $id = $this->bo->catalog->add_single_entry($data); 2218 2217 $result = array( 2219 2218 'msg' => lang('Entry Added Successfully!'), … … 2221 2220 ); 2222 2221 } 2223 2224 eval($code);2225 2222 2226 2223 if (!($id)) … … 2371 2368 case 'notes': 2372 2369 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 ); 2375 2371 break; 2376 2372
Note: See TracChangeset
for help on using the changeset viewer.