Menu

#320 Booking approval emails contain "awaiting approval"

Minor
open
nobody
None
1
2017-02-27
2014-12-02
Anonymous
No

When approving a booking the system sends emails with the old (and therefore incorrect) status.

A probable solution would be to reload the $data after updating it in the database in approve_entry_handler.php.

  $start_times = mrbsApproveEntry($id, $series); 
  $data = mrbsGetBookingInfo($id, $series); #new line

Discussion

  • Florian Wolff

    Florian Wolff - 2017-02-23

    Unfortunalely this bug is still present in 1.6.0, however the solution is still applicable: $data does not get updated and thus the "approval pending" state is in the email. So please fix, as I do not want to patch on each update...

     

    Last edit: Campbell Morrison 2017-02-23
  • Campbell Morrison

    Now fixed in the default branch. See changest 67a691. The fix will appear in 1.6.1.

     
  • Campbell Morrison

    This fix appears in MRBS 1.6.1.

     
MongoDB Logo MongoDB