From 35aa9ef6facd9acafc2998472e9f55c1606b4f7f Mon Sep 17 00:00:00 2001 From: Daniele Andreotti Date: Tue, 16 Apr 2024 15:25:59 +0200 Subject: [PATCH] check-servizi: fixed check on relation title --- CHANGES.rst | 3 ++- src/design/plone/contenttypes/browser/utils/check_servizi.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 70466d24..3f6d0c67 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.2.5 (unreleased) ------------------ -- Nothing changed yet. +- check-servizi: fixed check on relation title. + [daniele] 6.2.4 (2024-04-16) diff --git a/src/design/plone/contenttypes/browser/utils/check_servizi.py b/src/design/plone/contenttypes/browser/utils/check_servizi.py index bfe3fd5c..34f9e390 100644 --- a/src/design/plone/contenttypes/browser/utils/check_servizi.py +++ b/src/design/plone/contenttypes/browser/utils/check_servizi.py @@ -96,6 +96,8 @@ def get_relation_title(self, information_dict, label): for item in information_dict[label]: if not item: continue + if not item.to_object: + continue result = result + " " + item.to_object.title return result