The problem with comparing eMail addresses (WP Support Plus Email Pipe)
-
Hello fix it please:
Plugin – WP Support Plus Email Pipe
File – /wpsp_email_pipe/includes/cron/class-create-pipe-ticket.phpCode from:
if($agent_reply_status != '' && $user && $wpsupportplus->functions->is_staff($user) && $this->from_email != $ticket->guest_email){ $ticket_oprations->change_status($agent_reply_status, $this->ticket_id, $this->from_name, $this->from_email, $this->user_id); } if($customer_reply_status != '' && $this->from_email == $ticket->guest_email){ $ticket_oprations->change_status($customer_reply_status, $this->ticket_id, $this->from_name, $this->from_email, $this->user_id); }
Code to:
if($agent_reply_status != '' && $user && $wpsupportplus->functions->is_staff($user) && mb_strtolower($this->from_email) != mb_strtolower($ticket->guest_email)){ $ticket_oprations->change_status($agent_reply_status, $this->ticket_id, $this->from_name, $this->from_email, $this->user_id); } if($customer_reply_status != '' && mb_strtolower($this->from_email) == mb_strtolower($ticket->guest_email)){ $ticket_oprations->change_status($customer_reply_status, $this->ticket_id, $this->from_name, $this->from_email, $this->user_id); }
Example: mainprovidec@yandex.ru and MainProvidec@yandex.ru
This is the same email, written in different ways. And because of this, your plugin does not change the Ticket status. And after editing, everything will work fine.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘The problem with comparing eMail addresses (WP Support Plus Email Pipe)’ is closed to new replies.