From b38f490e4fcef2bd202080d281c56fe094a5f18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 13 Nov 2018 10:41:27 +0100 Subject: [PATCH] :ambulance: fix(template) Fix number modifier mandatory handling issue #5882 --- include/class_templateHandling.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/class_templateHandling.inc b/include/class_templateHandling.inc index 72867713f..f8823b501 100644 --- a/include/class_templateHandling.inc +++ b/include/class_templateHandling.inc @@ -436,6 +436,9 @@ class templateHandling $args[] = 1; } $numberGenerator = function ($mandatory, $start, $step) { + if (!$mandatory) { + yield ''; + } $i = $start; while (TRUE) { yield $i; -- GitLab