mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fixed error when the active Config is deleted and rest only one to restore. (#16408)
This commit is contained in:
parent
c27cb6f153
commit
b10fb67ce9
@ -224,7 +224,7 @@ class ConfigRevisionRestoreView(ContentTypePermissionRequiredMixin, View):
|
|||||||
for param in PARAMS:
|
for param in PARAMS:
|
||||||
params.append((
|
params.append((
|
||||||
param.name,
|
param.name,
|
||||||
current_config.data.get(param.name, None),
|
current_config.data.get(param.name, None) if current_config else None,
|
||||||
candidate_config.data.get(param.name, None)
|
candidate_config.data.get(param.name, None)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user