| @@ -42,13 +42,8 @@ | ||
| 42 | 42 | $integrations = \preg_replace('/(\${bf?)(\d+)([- \d]+\})/', '${1}' . $newFormId . '$3', $integrations); |
| 43 | 43 | $formSettings['integrations'] = json_decode(\preg_replace('/(\"formField\"\s*\:\s*\"bf?)(\d+)([- \d]+)/', '${1}' . $newFormId . '$3', $integrations)); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - if (isset($formSettings['formAbandonment'])) { | |
| 47 | - $formAbandonment = !is_string($formSettings['formAbandonment']) ? wp_json_encode($formSettings['formAbandonment']) : $formSettings['formAbandonment']; | |
| 48 | - $formSettings['formAbandonment'] = json_decode(\preg_replace('/(\${bf?)(\d+)([- \d]+\})/', '${1}' . $newFormId . '$3', $formAbandonment)); | |
| 49 | - } | |
| 50 | - | |
| 51 | 46 | if (isset($formSettings['mailTem'])) { |
| 52 | 47 | $mailTem = !is_string($formSettings['mailTem']) ? wp_json_encode($formSettings['mailTem']) : $formSettings['mailTem']; |
| 53 | 48 | $formSettings['mailTem'] = json_decode(\preg_replace('/(\${bf?)(\d+)([- \d]+\})/', '${1}' . $newFormId . '$3', $mailTem)); |
| 54 | 49 | $formData->formSettings = (object)$formSettings; |