Hello,
The "admin > Items > Manage items" display is Ok for the whole list
but if I click on a filter the display will be frozen with a "Processing" message
My setup : OSclass 2.0.2 with 2 languages setup
I have 10 ads and only ONE marked with the offensive flag
(This was a test with the offensive flag, but I can reproduce the same problem with any other flag)
It seems there is a syntax error in the returned JSON
Here is the response captured with Firebug and formatted with JSONLINT
{
"sEcho": 2,
"iTotalRecords": 10,
"iTotalDisplayRecords": 2,
"aaData": [
[
"<input type='checkbox' name='id[]' value='2' />",
"House for sale <br/><span id='datatables_quick_edit'><a href='http://blabla/oc-admin/index.php?page=comments&action=list&id=2'>View comments</a> | <a href='http://blabla/oc-admin/index.php?page=media&action=list&id=2'>View media</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status&id=2&value=INACTIVE'>Deactivate</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status_premium&id=2&value=1'>Mark as premium</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=item_edit&id=2'>Edit</a> | <a onclick=\"javascript:return confirm('This action can not be undone. Are you sure you want to continue?')\" href='http://blabla/oc-admin/index.php?page=items&action=delete&id[]=2'>Delete</a></span>",
"1",
"Houses - Apartments for Sale",
"2011-04-30 16:29:10"
][
"<input type='checkbox' name='id[]' value='2' />",
"House for sale <br/><span id='datatables_quick_edit'><a href='http://blabla/oc-admin/index.php?page=comments&action=list&id=2'>View comments</a> | <a href='http://blabla/oc-admin/index.php?page=media&action=list&id=2'>View media</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status&id=2&value=INACTIVE'>Deactivate</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status_premium&id=2&value=1'>Mark as premium</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=item_edit&id=2'>Edit</a> | <a onclick=\"javascript:return confirm('This action can not be undone. Are you sure you want to continue?')\" href='http://blabla/oc-admin/index.php?page=items&action=delete&id[]=2'>Delete</a></span>",
"1",
"Houses - Apartments for Sale",
"2011-04-30 16:29:10"
]
]
}
As you can see, even if I have only ONE item concerned by the filter, I receive this item twice and it throw a JSON syntax error because there is no comma between the two occurences
Is this a known bug ?
or a misconfig on my side ?
thanks
--
aSa