Fix manage-booking time slots; align modify email with original

- getAvailableTimes() takes optional exclude_booking_id so a guest's
  own booking isn't counted as a conflict when editing — original time
  now reappears when extending services
- Manage-booking AJAX passes manage_token; server resolves to booking_id
- manage_booking_process uses the new param instead of the date-swap
  workaround (removes a small race-condition risk)
- Modify-booking emails (no/en/hu) now include Name/Email/Phone rows
  and the 24h cancellation policy, matching the original booking email
This commit is contained in:
Ubuntu
2026-05-10 13:18:07 +00:00
parent 1e32a146a7
commit e24e68f603
3 changed files with 68 additions and 26 deletions
+2 -1
View File
@@ -562,7 +562,8 @@
action: 'getAvailableTimes',
worker_id: $('#worker_id').val(),
servicelength: $('#servicelength').val(),
selectedDate: selectedDate
selectedDate: selectedDate,
manage_token: '<?php echo $token; ?>'
},
}).done(function(result){
if(result != 0){