Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#892 closed Bug (fixed)

Unsorted table view in Length of Visits (patch included)

Reported by: kurakin Owned by:
Priority: normal Milestone: Piwik 0.4.3
Component: Core Keywords:
Cc: Sensitive:

Description

We have unsorted data in normal table view of Lenght of Visits for now. This looks slightly strange: see before.png attachment.

This simple patch solves the problem (see after.png attachment).

diff -Ebur piwik-4.2.orig/plugins/VisitorInterest/Controller.php piwik-4.2/plugins/VisitorInterest/Controller.php
--- piwik-4.2.orig/plugins/VisitorInterest/Controller.php	2009-07-08 08:19:14 +0400
+++ piwik-4.2/plugins/VisitorInterest/Controller.php	2009-07-31 20:59:21 +0400
@@ -25,6 +25,7 @@
 		$view->init( $this->pluginName,  __FUNCTION__, "VisitorInterest.getNumberOfVisitsPerVisitDuration" );
 		
 		$view->setColumnsToDisplay( array('label','nb_visits') );
+		$view->setSortedColumn( 'label', 'asc' );
 		$view->setColumnTranslation('label', Piwik_Translate('VisitorInterest_ColumnVisitDuration'));
 		$view->disableSort();
 		$view->disableExcludeLowPopulation();

Attachments (2)

before.png (13.0 KB) - added by kurakin 5 years ago.
Unsorted Length of Visits / table view
after.png (14.0 KB) - added by kurakin 5 years ago.
Length of Visits / table view, sorted by label

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by kurakin

Unsorted Length of Visits / table view

Changed 5 years ago by kurakin

Length of Visits / table view, sorted by label

comment:1 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1345]) fixes #892 - sort Length of Visits by label; thanks kurakin

comment:2 Changed 5 years ago by vipsoft (robocoder)

  • Milestone changed from 2- DigitalVibes to 1 - Piwik 0.4.3
Note: See TracTickets for help on using tickets.