Originally Posted by
dinix
The problem is end i chouse "sort by" the produts dont change
I found a small error in stats_stock.php that makes the "sort by" only work with register globals enabled. You can fix it by adding a line (at line 27of admin/stats_stock.php).
Change:
Code:
require('includes/application_top.php');
$maxDisplay = 100;
if ($sort=='nameA') {
$sOrder = 'pd.products_name ASC, p.products_id';
}
To:
Code:
require('includes/application_top.php');
$maxDisplay = 100;
$sort = $_GET['sort'];
if ($sort=='nameA') {
$sOrder = 'pd.products_name ASC, p.products_id';
}
Bookmarks