You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new listing enquiry form submit, an first email is sent to the user author of the property with the subject "Your inquiry has been sent!".
Expected Behavior
This mail should arrive to the mail of the guest who is making the request.
Current Behavior
Possible Solution
I think the problem is on line 1660 of the roomify_listing.module file
$to_account = user_load($type->uid);
if ($existing_account) {
$user_wrapper = entity_metadata_wrapper('user', $to_account);
$rules_state->currentArguments['user'] = $user_wrapper;
$rules_state->variables['user'] = $user_wrapper;
pet_action_send_pet('authenticated_user_booking_enquiry', NULL, $to_account, NULL, NULL, array(), $rules_state);
}
above the variable $to_account refers to the author and should be $account that refers to the user guest.
Steps to Reproduce from a clean installation of the latest release
Context (Environment)
The text was updated successfully, but these errors were encountered:
hercab
changed the title
Wrong user email notification when sbmit new "listing enquiry form"
Wrong user email notification when submit new "listing enquiry form"
Sep 17, 2018
When a new listing enquiry form submit, an first email is sent to the user author of the property with the subject "Your inquiry has been sent!".
Expected Behavior
This mail should arrive to the mail of the guest who is making the request.
Current Behavior
Possible Solution
I think the problem is on line 1660 of the roomify_listing.module file
$to_account = user_load($type->uid);
if ($existing_account) {
$user_wrapper = entity_metadata_wrapper('user', $to_account);
$rules_state->currentArguments['user'] = $user_wrapper;
$rules_state->variables['user'] = $user_wrapper;
pet_action_send_pet('authenticated_user_booking_enquiry', NULL, $to_account, NULL, NULL, array(), $rules_state);
}
above the variable $to_account refers to the author and should be $account that refers to the user guest.
Steps to Reproduce from a clean installation of the latest release
Context (Environment)
The text was updated successfully, but these errors were encountered: