diff --git a/CHANGELOG.md b/CHANGELOG.md index a2eff6ac..78c63ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Support multiline generated values in alter table - Link //domain.tld values - Improve print of nested tables +- Hide sort links on unsortable columns - PostgreSQL: Offer foreign keys in create table - PostgreSQL: Add missing parentheses to CHECK export - PostgreSQL: Allow creating NOT DEFERRABLE foreign keys diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 8899e65d..bf40ddb9 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -353,17 +353,14 @@ if (!$columns && support("table")) { $desc = "&desc%5B0%5D=1"; echo "" . script("mixin(qsl('th'), {onmouseover: partial(columnMouse), onmouseout: partial(columnMouse, ' hidden')});", ""); $fun = apply_sql_function($val["fun"], $name); //! columns looking like functions - $sortable = isset($field["privileges"]["order"]) || $fun; + $sortable = isset($field["privileges"]["order"]) || $fun != $name; echo ($sortable ? "$fun" : $fun); // $order[0] == $key - COUNT(*) - echo ""; + echo ($menu ? "" : ""); } $functions[$key] = $val["fun"]; next($select);