From b099d834a0145dc8ea53791a7bef2e74c2b9d0bd Mon Sep 17 00:00:00 2001 From: Julien BARRET Date: Sun, 29 Apr 2018 23:26:44 +0200 Subject: [PATCH] Fix bug : when click on refresh button, next and previous button are broken. Eg. in year 2018, next button point to year 4032! --- htdocs/compta/resultat/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php index e8b00fc869b..c4131dc365b 100644 --- a/htdocs/compta/resultat/index.php +++ b/htdocs/compta/resultat/index.php @@ -90,7 +90,7 @@ $tmps=dol_getdate($date_start); $year_start = $tmps['year']; $tmpe=dol_getdate($date_end); $year_end = $tmpe['year']; -$nbofyear = ($year_end - $start_year) + 1; +$nbofyear = ($year_end - $year_start) + 1; //var_dump("year_start=".$year_start." year_end=".$year_end." nbofyear=".$nbofyear." date_start=".dol_print_date($date_start, 'dayhour')." date_end=".dol_print_date($date_end, 'dayhour'));