diff --git a/admin/reports.php b/admin/reports.php index 3cdf69a5..d8a58f25 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -229,7 +229,8 @@ document.addreport.stock.style.display=''; document.getElementById('reporttypecustom').style.display='none'; document.getElementById('reportstockcustom').style.display='none'; - var obj=eval(http.responseText); + + var obj=eval('('+http.responseText+')'); if(obj['option']['type']) { for(i=0;i