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

// distributions // distributions
$firstDistribution = Distribution::searchOne([], [ $firstDistribution = Distribution::searchOne([], [
'orderby' => 'id ASC'
'orderby' => 'date ASC'
]) ; ]) ;
$lastDistribution = Distribution::searchOne([], [ $lastDistribution = Distribution::searchOne([], [
'orderby' => 'id DESC'
'orderby' => 'date DESC'
]) ; ]) ;
$firstYear = date('Y',strtotime($firstDistribution->date)) ; $firstYear = date('Y',strtotime($firstDistribution->date)) ;

Loading…
Cancel
Save