Fix #1793 -- Remove hidden URLs from EventSettingsStore and avoid saving them (#1853)

This commit is contained in:
Martin Gross
2020-11-23 17:15:22 +01:00
committed by GitHub
parent 97b9c1029a
commit 076aa097f6
2 changed files with 22 additions and 0 deletions

View File

@@ -657,6 +657,8 @@ class ProviderForm(SettingsForm):
enabled = cleaned_data.get(self.settingspref + '_enabled')
if not enabled:
return
if cleaned_data.get(self.settingspref + '_hidden_url', None):
cleaned_data[self.settingspref + '_hidden_url'] = None
for k, v in self.fields.items():
val = cleaned_data.get(k)
if v._required and not val: