Support » Plugin: Event List » No events found in Trash

  • MassimoD

    (@massimod)


    Hello.

    After doing a little cleanup of old events, i trashed 24 of them.

    While i see a link “Trash 24”, selecting it i get “No events found in Trash”.

    Any ideas ?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • hatesspam

    (@hatesspam)

    I cannot reproduce for events I just made for the purpose of testing this, but I am able to reproduce for an older event I trashed.

    The event is still in the database (status: ‘trash’), but is invisible in the Trash tab.

    If I switch the filter from ‘All dates’ to ‘past’, the trashed event becomes visible. If I then switch the filter back to ‘All dates’, the trashed event remains visible, but if I then click on the ‘All events’ link and then go back to ‘Trash’ again, the trashed event has disappeared again.

    hatesspam

    (@hatesspam)

    So I had a hunch.

    If you add the following statement after the first statement of the filter_request() method in admin/includes/admin-main.php:

    if ( isset($_GET[‘post_status’]) && ( ‘trash’ == $_GET[‘post_status’] ) && !isset($_GET[‘date’]) ) {
    $selected_date = ‘all’;
    }

    The trash will show trashed items from the past immediately.

    The first statement of that method is the one that starts with ‘$selected_date – isset’ et cetera.

    MassimoD

    (@massimod)

    @hatesspam Thanks, that works, still EL has become a broken plugin for me. It doesn’t work as expected.

    hatesspam

    (@hatesspam)

    Did you mark this as resolved, MassimoD? This is a bug that the developer of the plugin needs to fix, so it should probably stay open until he has had a look at it.

    MassimoD

    (@massimod)

    Apparently i did, i reverted it.

    Thanks.

    Where the Line to put this request on Editor Plugin/admin/includes/admin-main.php/line?:
    if ( isset($_GET[‘post_status’]) && ( ‘trash’ == $_GET[‘post_status’] ) && !isset($_GET[‘date’]) ) {
    $selected_date = ‘all’;
    }
    Thank you for your help,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No events found in Trash’ is closed to new replies.