Commit 803af709 authored by gdd's avatar gdd

Fixed problem with ieid getting erased on image style update

parent 2b316b6a
......@@ -146,7 +146,7 @@ function image_style_form_add_submit($form, &$form_state) {
$style = $form_state['image_style'];
// Check if this field has any configuration options.
$effect = image_effect_definition_load($form_state['values']['new']);
// Load the configuration form for this option.
if (isset($effect['form callback'])) {
$path = 'admin/config/media/image-styles/edit/' . $form_state['image_style']['name'] . '/add/' . $form_state['values']['new'];
......@@ -178,6 +178,7 @@ function image_style_form_submit($form, &$form_state) {
'name' => $style['effects'][$ieid]['name'],
'data' => $style['effects'][$ieid]['data'],
'weight' => $effect_data['weight'],
'ieid' => $ieid,
);
$style['effects'][$ieid] = $effect;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment