+ Reply to Thread
Results 1 to 3 of 3

Thread: Bug: Not be able to filter listing in Admin after upgrading to 4.9.0

  1. #1
    Member
    Join Date
    May 2020
    Location
    Sydney, Australia
    Posts
    37

    Bug: Not be able to filter listing in Admin after upgrading to 4.9.0

    Hi

    We used extensively the filter in Admin for looking at abused ads so we can remove ads. Since we upgrade this from 4.8.2 to 4.9.0, we are not able to filter by specific Listing ID or even the username - it returned "There is no data to display".

    If we reset the filter, all listings came out with no issue.

    Any ideas on how to fix this?

    Thanks

  2. #2

  3. #3
    Member
    Join Date
    May 2020
    Location
    Sydney, Australia
    Posts
    37
    Quote Originally Posted by Logmanov View Post
    Thanks @logmanov

    We applied this and worked OK:

    You need to apply this fix:

    go to admin > tpl > controllers > listings.tpl > find a line 158

    replace:

    $('.filters').each(function(){
    if ($(this).attr('value') != 0)
    {
    filters.push(new Array($(this).attr('id'), $(this).attr('value')));
    write_filters.push($(this).attr('id')+'||'+$(this) .attr('value'));
    }
    });

    with:


    $('.filters').each(function(){
    if ($(this).val()) {
    filters.push(new Array($(this).attr('id'), $(this).val()));
    write_filters.push($(this).attr('id')+'||'+$(this) .val());
    }
    });

+ Reply to Thread