mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix query as the order matters
* Note: When "Show blob and text fields as" option is set to "Links to download" the download won't work if the sorting is active
This commit is contained in:
@@ -19,7 +19,7 @@ $limitsql = &get_search_limit(\%in);
|
|||||||
($sortsql, $sorthids, $sortargs) = &get_search_sort(\%in);
|
($sortsql, $sorthids, $sortargs) = &get_search_sort(\%in);
|
||||||
|
|
||||||
$d = &execute_sql($in{'db'},
|
$d = &execute_sql($in{'db'},
|
||||||
"select * from "."e_table($in{'table'})." $search $limitsql $sortsql");
|
"select * from "."e_table($in{'table'})." $search $sortsql $limitsql");
|
||||||
|
|
||||||
# Work out the MIME type based on the data
|
# Work out the MIME type based on the data
|
||||||
$data = $d->{'data'}->[$in{'row'}]->[$in{'col'}];
|
$data = $d->{'data'}->[$in{'row'}]->[$in{'col'}];
|
||||||
|
|||||||
Reference in New Issue
Block a user