Skip to content

Commit 1737be7

Browse files
committed
changelog
1 parent 51f9ec4 commit 1737be7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Changelog
44
6.3.7 (unreleased)
55
------------------
66

7-
- Nothing changed yet.
8-
7+
- Fix operator order in condition in summary for apertura_bando
8+
[mamico]
99

1010
6.3.6 (2025-04-09)
1111
------------------

src/design/plone/contenttypes/restapi/serializers/summary.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,9 @@ def __call__(self, force_all_metadata=False, force_images=False):
160160
res["bando_state"] = self.get_bando_state()
161161

162162
# if default set to None
163-
if (
164-
("apertura_bando" in metadata_fields or self.show_all_metadata_fields)
165-
and res["apertura_bando"] == "1100-01-01T00:00:00"
166-
):
167-
res["apertura_bando"] = None
163+
if "apertura_bando" in metadata_fields or self.show_all_metadata_fields:
164+
if res.get("apertura_bando") == "1100-01-01T00:00:00":
165+
res["apertura_bando"] = None
168166

169167
if self.context.portal_type == "Event":
170168
res["start"] = json_compatible(self.context.start)

0 commit comments

Comments
 (0)