Oubli dans la MAJ en 2.3.4 --> à vérifier s'il n'y a pas d'autres oublis

This commit is contained in:
2020-05-03 23:44:13 +02:00
parent 315320df7c
commit 28b21af6c8
8 changed files with 285 additions and 17 deletions

View File

@@ -151,7 +151,9 @@ class TheliaLoop extends AbstractSmartyPlugin
self::$pagination[$name] = null;
$loopResults = $loop->exec(self::$pagination[$name]);
// We have to clone the result, as exec() returns a cached LoopResult object, which may cause side effects
// if loops with the same argument set are nested (see https://github.com/thelia/thelia/issues/2213)
$loopResults = clone($loop->exec(self::$pagination[$name]));
$loopResults->rewind();