diff --git a/g3w-admin/qdjango/vector.py b/g3w-admin/qdjango/vector.py index 1f04d8c17..b3863fa81 100644 --- a/g3w-admin/qdjango/vector.py +++ b/g3w-admin/qdjango/vector.py @@ -298,7 +298,7 @@ def get_forms(self): 'label': data['label']} # If fields has a comment, set it as 'help' property - if data['comment']: + if 'comment' in data and data['comment']: fields[self.layer_name]['fields'][field].update({ "help": data["comment"] })