Archive bug?


Home Forums Front End PM PRO Archive bug?

This topic is: Not Resolved

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21714
    Dawson College
    Participant

    Hi Shamim,

    I have an issue with the archive feature.

    If I select a message to be archived and do it, I get a success message that its done but the message still shows in the inbox.

    I try to archive it again, no message.

    I tracked it down to the timestamp is getting set in the db but the table view of messages isn’t filtering out the archive when fep-filter is set to inbox.

    Therefore, I’ve written this code to resolve my issue.

    
    add_filter( 'fep_message_query_args', array( $this,'message_query_args' ), 10, 2 );
    
    public function message_query_args_admissions_remove_archived( $args ) {
        if ( isset( $_GET['fep-filter'] ) && ! empty( $_GET['fep-filter'] ) && $_GET['fep-filter'] != 'archive' ) {
            $args['participant_query'][0]['mgs_archived'] = false;
        }
        return $args;
    }
    

    I’m using 10.1.5 Pro

    I have replicated the issue on a test install and the student sent a mgs to the admin
    the admin archived it but can still see it in inbox.

    My message type is threaded

    You can see this by going to https://imgur.com/a/aw6cR8z

    #21849
    Shamim Hasan
    Keymaster

    Currently archive message is shown in archive tab also in all other tabs as appropriate.

    and thank you for suggestion. I will note it for future consideration.

Viewing 2 posts - 1 through 2 (of 2 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.