Changeset 1718629
- Timestamp:
- 08/24/2017 08:08:28 AM (9 years ago)
- File:
-
- 1 edited
-
teamgate-crm-forms/trunk/teamgate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
teamgate-crm-forms/trunk/teamgate.php
r1512481 r1718629 44 44 'authToken' => esc_attr(get_option('teamgate-auth-token')) 45 45 ]); 46 // reformat custom fields 47 foreach($posted_data as $index => $item) { 48 if (strpos($index, 'customFields') !== FALSE) { 49 if (empty($posted_data['customFields'])) { 50 $posted_data['customFields'] = array(); 51 } 52 $fieldId = str_replace('customFields-', '', $index); 53 $posted_data['customFields'][$fieldId] = $item; 54 unset($posted_data[$index]); 55 } 56 } 46 57 $method = $posted_data['teamgate-entry-handler']; 47 58 $api->$method->create($posted_data);
Note: See TracChangeset
for help on using the changeset viewer.