This can happen if the style editor is opened in two tabs and no logo is
configured yet. In Tab (A) an logo is uploaded and then Tab (B) is submitted.
Tab (B) will not provided the `pageLogo` key in the `uploads` parameter,
because nothing in this field was changed. Thus the processing for the logo
does not run. However all style variables are cleared upon an edit, thus
clearing the database reference.
Closes #4606
} else {
$this->parameters['variables'][$type] = '';
}
+ } else {
+ // If the key was not provided then no change is desired. We must re-use
+ // the current value, because all variables will be cleared.
+ $this->parameters['variables'][$type] = $style->getVariable($type);
}
}