diff --git a/src/design/plone/ioprenoto/restapi/services/booking/get.py b/src/design/plone/ioprenoto/restapi/services/booking/get.py index cd547bd..72d8bb0 100644 --- a/src/design/plone/ioprenoto/restapi/services/booking/get.py +++ b/src/design/plone/ioprenoto/restapi/services/booking/get.py @@ -49,4 +49,9 @@ def reply(self): (booking, self.request), ISerializeToPrenotazioneSearchableItem )(fullobjects=True) + # BBB: + if "notify_on_confirm" not in response: + prenotazioni_folder = booking.getPrenotazioniFolder() + response["notify_on_confirm"] = prenotazioni_folder.notify_on_confirm + return response diff --git a/src/design/plone/ioprenoto/tests/test_booking_info.py b/src/design/plone/ioprenoto/tests/test_booking_info.py index 43c5e09..6725816 100644 --- a/src/design/plone/ioprenoto/tests/test_booking_info.py +++ b/src/design/plone/ioprenoto/tests/test_booking_info.py @@ -224,3 +224,7 @@ def test_get_bookings(self): booking_info["booking_office"]["@id"], self.unita_organizzativa.absolute_url(), ) + self.assertEqual( + booking_info["notify_on_confirm"], + False, + )