Merge remote-tracking branch 'origin/develop' into feature/4517-from-dev

# Conflicts:
#	CONTRIBUTING.md
#	composer.lock
#	core/designdocument.class.inc.php
#	lib/composer/installed.json
#	lib/composer/installed.php
This commit is contained in:
Molkobain
2022-07-28 10:30:25 +02:00
246 changed files with 19028 additions and 20326 deletions

View File

@@ -141,6 +141,16 @@ class Extension
// @see https://www.php.net/manual/fr/function.var-export.php
$aFilters[] = new TwigFilter('var_export', 'var_export');
// @since 2.7.7 3.0.2 3.1.0 N°4867 "Twig content not allowed" error when use the extkey widget search icon in the user portal
// Overwrite native twig filter: disable use of 'system' filter
$aFilters[] = new TwigFilter('filter', function ($array, $arrow) {
if ($arrow == 'system') {
return json_encode($array);
}
return twig_array_filter($array, $arrow);
});
return $aFilters;
}