Sfoglia il codice sorgente

[backend] Rapport : correctif bug liste années

refactoring
Guillaume 4 anni fa
parent
commit
63348dc065
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      backend/controllers/ReportController.php

+ 2
- 2
backend/controllers/ReportController.php Vedi 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…
Annulla
Salva