Bug: mail only on deleted, notrejected
-
We were wondering why the user does not get a mail when a booking is rejected, so we had a look in the code…
It seems like there is no “rejected” mail template, only one for “deleted”, although in the backend it says “Benachrichtigen, wenn die Reservierung abgelehnt wurde” => rejected
So for all who are wondering: if you click “reject” in the backend, not mail will be send.
If you approve and then delete => mail will be send.
Of course, makes no sense, but seems like the code is wrong in this case…
probably, it should be:
if($update_res) {
if($res_status[“status”] == “approved”) {
$this->change_date_avail_count( $id, false );
}
$send_mail = $this->send_mail($id,”rejected”);
=> change to
$send_mail = $this->send_mail($id,”canceled”);
- The topic ‘Bug: mail only on deleted, notrejected’ is closed to new replies.