Skip to content

Commit

Permalink
notify_on_confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Jul 31, 2024
1 parent 94f9469 commit 8cc972a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/design/plone/ioprenoto/restapi/services/booking/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions src/design/plone/ioprenoto/tests/test_booking_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 8cc972a

Please sign in to comment.