Fix: Support for reset everymonth (@99 into numbering mask) was ko when

changing year.
This commit is contained in:
Laurent Destailleur
2014-01-20 11:20:38 +01:00
parent 3a246bdca9
commit 5b6b8f1d5b
2 changed files with 47 additions and 2 deletions

View File

@@ -629,7 +629,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
if ($maskraz > 0) // A reset is required
{
if ($maskraz == 99) {
$maskraz = date('m');
$maskraz = date('m', $date);
$resetEveryMonth = true;
}
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';