[Vtigercrm-commits] [vtiger development] #7158: Default sort order set to DESC for Due Date in Activity.php is not kept
vtiger development
vtiger-tickets at trac.vtiger.com
Sun Oct 16 13:13:43 PDT 2011
#7158: Default sort order set to DESC for Due Date in Activity.php is not kept
---------------------------------------------+------------------------------
Reporter: gebhardt.p | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone: Unassigned
Component: vtigercrm | Version: 5.2.1
Keywords: default sort order Activity.php |
---------------------------------------------+------------------------------
[http://forums.vtiger.com/viewtopic.php?f=104&t=49709]
Pls. forget quick solution in thread - below fix should be working more
reliable. Pls. verify.
Added the commented section into Mike Crow's Mod:
{{{
function getSortOrder()
{
global $log;
$log->debug("Entering getSortOrder() method ...");
// pag 2011-Oct-14
$use_default_sort_order = '';
if(PerformancePrefs::getBoolean('LISTVIEW_DEFAULT_SORTING', true)) {
$use_default_sort_order =
$this->default_sort_order;
}
// END pag 2011-Oct-14
if(isset($_REQUEST['sorder'])) {
$sorder =
$this->db->sql_escape_string($_REQUEST['sorder']);
}
else {
$sorder = (($_SESSION['ACTIVITIES_SORT_ORDER'] !=
'')?($_SESSION['ACTIVITIES_SORT_ORDER']):($use_default_sort_order));
}
$log->debug("Exiting getSortOrder method ...");
return $sorder;
}
}}}
Best regards
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7158>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list