Skip to content
Snippets Groups Projects
Commit eee8ae7b authored by Pieter Frenssen's avatar Pieter Frenssen Committed by Dave Reid
Browse files

Issue #1085194: Not all selected mappings are removed.

parent 51600e96
No related branches found
No related tags found
No related merge requests found
...@@ -612,10 +612,10 @@ function feeds_ui_mapping_form_submit($form, &$form_state) { ...@@ -612,10 +612,10 @@ function feeds_ui_mapping_form_submit($form, &$form_state) {
foreach ($form_state['values']['remove_flags'] as $k => $v) { foreach ($form_state['values']['remove_flags'] as $k => $v) {
if ($v) { if ($v) {
unset($mappings[$k]); unset($mappings[$k]);
// Keep our keys clean.
$mappings = array_values($mappings);
} }
} }
// Keep our keys clean.
$mappings = array_values($mappings);
} }
$processor->addConfig(array('mappings' => $mappings)); $processor->addConfig(array('mappings' => $mappings));
$processor->save(); $processor->save();
......
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