1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #3027: Ignore empty local context data when rendering config contexts

This commit is contained in:
Jeremy Stretch
2019-03-28 10:16:28 -04:00
parent dff3165402
commit 498f132cad
2 changed files with 2 additions and 1 deletions

View File

@@ -720,7 +720,7 @@ class ConfigContextModel(models.Model):
data = deepmerge(data, context.data)
# If the object has local config context data defined, merge it last
if self.local_context_data is not None:
if self.local_context_data:
data = deepmerge(data, self.local_context_data)
return data