From 222543fbb3bf4cc1a332b2a93c9812a248bac89b Mon Sep 17 00:00:00 2001 From: Jeoffrey Bauvin Date: Fri, 16 Feb 2018 22:41:57 +0100 Subject: [PATCH] #49 fix edit name and content for variables --- app/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/decorators.py b/app/decorators.py index c349fb9..b9e9bee 100644 --- a/app/decorators.py +++ b/app/decorators.py @@ -115,7 +115,7 @@ def func_wrapper(*args, **kwargs): obj_id = kwargs.get('id') content = request.get_json(force=True, silent=True) - editable_properties = [ 'name', 'environment_id', 'class_id', 'hostgroup_id' ] + editable_properties = [ 'name', 'environment_id', 'class_id', 'hostgroup_id', 'content' ] updates = False for prop in editable_properties: if prop in content: