Skip to content
Snippets Groups Projects
Commit 11a25bbf authored by Colin Corrigan's avatar Colin Corrigan
Browse files

Don't duplicate fields when switching input modes

parent 193a63ea
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,8 @@ class SalesforceMappingFieldsForm extends SalesforceMappingFormBase {
// around that, they're going to have problems.
if (!empty($form_state->getValues())
&& $form_state->getValue('add') == $form_state->getValue('op')
&& !empty($input['field_type'])) {
&& !empty($input['field_type'])
&& $form_state->getTriggeringElement()['#name'] != 'context_drupal_field_value') {
$row = $row_template;
$row['#attributes']['class']['zebra'] = ($zebra % 2) ? 'odd' : 'even';
$rows[] = $row + $this->getRow(NULL, $form, $form_state);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment