From 45a3348cbf5a52bb26a1b1d65ac386362d6bd6df Mon Sep 17 00:00:00 2001 From: Mael Date: Fri, 1 Mar 2019 18:25:45 +0100 Subject: [PATCH] =?UTF-8?q?Protection=20anti=20oublie=20de=20p=C3=A9riode?= =?UTF-8?q?=20renforc=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/treatVariable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/engine/treatVariable.js b/source/engine/treatVariable.js index 6ed596c46..a0705af66 100644 --- a/source/engine/treatVariable.js +++ b/source/engine/treatVariable.js @@ -139,11 +139,11 @@ export let treatVariableTransforms = (rules, rule) => parseResult => { // Exceptions if (!rule.période && !inlinePeriodTransform) { - if (ruleToTransform.période == 'flexible') + if (ruleToTransform.période) throw new Error( `Attention, une variable sans période, ${ rule.dottedName - }, qui appelle une variable à période flexible, ${ + }, qui appelle une variable à période, ${ ruleToTransform.dottedName }, c'est suspect ! `