Skip to content
Snippets Groups Projects
Commit 8c7b8575 authored by Tobby Hagler's avatar Tobby Hagler
Browse files

Issue #1048642 by greg.harvey: Check for remove_flags in Feeds UI before using that variable.

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