-
June 18, 2022, 06:22 AM
#1
Member
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
-
June 18, 2022, 10:17 AM
#2
Master
-
June 19, 2022, 12:17 AM
#3
Member

Originally Posted by
Logmanov
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());
}
});