Browse Source

[backend] Rapport : correctif bug liste années

dev
Guillaume 4 years ago
parent
commit
63348dc065
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      backend/controllers/ReportController.php

+ 2
- 2
backend/controllers/ReportController.php View File

@@ -81,10 +81,10 @@ class ReportController extends BackendController
// distributions
$firstDistribution = Distribution::searchOne([], [
'orderby' => 'id ASC'
'orderby' => 'date ASC'
]) ;
$lastDistribution = Distribution::searchOne([], [
'orderby' => 'id DESC'
'orderby' => 'date DESC'
]) ;
$firstYear = date('Y',strtotime($firstDistribution->date)) ;

Loading…
Cancel
Save