From b624fdbf821e6fcc767116e89843a9a91b88d3e7 Mon Sep 17 00:00:00 2001 From: wlorenzetti Date: Thu, 28 Sep 2023 09:58:02 +0200 Subject: [PATCH] Fix for back porting. --- g3w-admin/qdjango/vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] })