[geeklog-cvs] geeklog: Admin lists allowed non-sortable columns to be sortable...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Dec 22 09:22:49 EST 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/75f54388c20b
changeset: 6585:75f54388c20b
user: Dirk Haun <dirk at haun-online.de>
date: Mon Dec 22 15:22:36 2008 +0100
description:
Admin lists allowed non-sortable columns to be sortable (bug #0000791)
diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
public_html/docs/history | 2 ++
system/lib-admin.php | 3 ++-
diffs (31 lines):
diff -r d68e45650544 -r 75f54388c20b public_html/docs/history
--- a/public_html/docs/history Mon Dec 22 12:00:58 2008 +0100
+++ b/public_html/docs/history Mon Dec 22 15:22:36 2008 +0100
@@ -3,6 +3,8 @@
??? ??, 2008 (1.5.2)
------------
+- Admin lists allowed non-sortable columns to be sortable (reported and patch
+ provided by hiroron, bug #0000791)
- Fixed wrong use of COM_isAnonUser in COM_getPermSQL (since 1.5.0) [Dirk]
- Fixed STORY_getItemInfo - need to check the draft flag and for a publish date
in the future [mystral-kk, Dirk]
diff -r d68e45650544 -r 75f54388c20b system/lib-admin.php
--- a/system/lib-admin.php Mon Dec 22 12:00:58 2008 +0100
+++ b/system/lib-admin.php Mon Dec 22 15:22:36 2008 +0100
@@ -372,13 +372,14 @@
if (!empty ($order_for_query)) { # concat order string
$order_sql = "ORDER BY $order_for_query $direction";
}
- $th_subtags = ''; // other tags in the th, such as onlick and mouseover
+ $th_subtags = ''; // other tags in the th, such as onclick and mouseover
$header_text = ''; // title as displayed to the user
// HEADER FIELDS array(text, field, sort, class)
// this part defines the contents & format of the header fields
for ($i=0; $i < count( $header_arr ); $i++) { #iterate through all headers
$header_text = $header_arr[$i]['text'];
+ $th_subtags = '';
if ($header_arr[$i]['sort'] != false) { # is this sortable?
if ($order==$header_arr[$i]['field']) { # is this currently sorted?
$header_text .= $img_arrow;
More information about the geeklog-cvs
mailing list