From 85a076b622e6a00956d010eed0eb214eafa494ce Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 11 May 2011 14:19:59 +0200 Subject: [PATCH] Special fix in the document table when ordering elements by name see #2499 --- main/document/document.php | 47 ++++++++++-------- main/inc/lib/sortabletable.class.php | 12 +++-- main/inc/lib/tablesort.lib.php | 72 ++++++++++++++++++++-------- 3 files changed, 85 insertions(+), 46 deletions(-) diff --git a/main/document/document.php b/main/document/document.php index 7546bfce7b..c9ae3c09b8 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -119,7 +119,6 @@ $curdirpathurl = urlencode($curdirpath); // If the path is not found (no document id), set the path to / $document_id = DocumentManager::get_document_id($_course, $curdirpath); - if (!$document_id) { $document_id = DocumentManager::get_document_id(api_get_course_info(), $curdirpath); } @@ -170,7 +169,6 @@ if ($tool_visibility == '0' && $to_group_id == '0' && !($is_allowed_to_edit || $ api_not_allowed(true); } - $htmlHeadXtra[] = "