Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

The problem with comparing eMail addresses (WP Support Plus Email Pipe)

$
0
0

Replies: 0

Hello fix it please:

Plugin – WP Support Plus Email Pipe
File – /wpsp_email_pipe/includes/cron/class-create-pipe-ticket.php

Code 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 all articles
Browse latest Browse all 59525

Trending Articles