Copy settings in on_settings_load so we don't mutate them
This commit is contained in:
parent
59e4394cdd
commit
a88cd9fcfc
1 changed files with 2 additions and 1 deletions
|
|
@ -828,8 +828,9 @@ class SettingsPlugin(OctoPrintPlugin):
|
|||
:return: the current settings of the plugin, as a dictionary
|
||||
"""
|
||||
from flask.ext.login import current_user
|
||||
import copy
|
||||
|
||||
data = self._settings.get_all_data()
|
||||
data = copy.deepcopy(self._settings.get_all_data(merged=True))
|
||||
if self.config_version_key in data:
|
||||
del data[self.config_version_key]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue