mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Aaand hasattr not working as expected
This commit is contained in:
parent
e46fe6b77b
commit
adb0e67b25
1 changed files with 2 additions and 1 deletions
|
@ -500,7 +500,8 @@ class DomainConfigPanel(ConfigPanel):
|
||||||
super()._load_current_values()
|
super()._load_current_values()
|
||||||
|
|
||||||
# FIXME: Ugly hack to save the registar id/value and reinject it in _load_current_values ...
|
# FIXME: Ugly hack to save the registar id/value and reinject it in _load_current_values ...
|
||||||
if hasattr(self, "registrar_id"):
|
filter_key = self.filter_key.split(".") if self.filter_key != "" else []
|
||||||
|
if not filter_key or filter_key[0] == "dns":
|
||||||
self.values["registrar"] = self.registar_id
|
self.values["registrar"] = self.registar_id
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue