ui: Fix applying XMR settings with an empty remote urls list.

This commit is contained in:
tecnovert 2023-11-09 21:24:57 +02:00
parent 9a1b7db2dc
commit 05e6edd5df
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93

View File

@ -60,7 +60,7 @@ def page_settings(self, url_split, post_string):
data['manage_daemon'] = True if get_data_entry(form_data, 'managedaemon_' + name) == 'true' else False
data['rpchost'] = get_data_entry(form_data, 'rpchost_' + name)
data['rpcport'] = int(get_data_entry(form_data, 'rpcport_' + name))
data['remotedaemonurls'] = get_data_entry(form_data, 'remotedaemonurls_' + name)
data['remotedaemonurls'] = get_data_entry_or(form_data, 'remotedaemonurls_' + name, '')
data['automatically_select_daemon'] = True if get_data_entry(form_data, 'autosetdaemon_' + name) == 'true' else False
else:
data['conf_target'] = int(get_data_entry(form_data, 'conf_target_' + name))