From 007fd095159353a1ebb16c959e64a3b44203ee32 Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 23 Oct 2023 22:26:33 +0300 Subject: [PATCH] making unvalidated content available to application --- api/src/Etemplate.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index b013b6fd73..b9f09f373a 100644 --- a/api/src/Etemplate.php +++ b/api/src/Etemplate.php @@ -349,6 +349,13 @@ class Etemplate extends Etemplate\Widget\Template return $sel_options; } + /** + * Unvalidated content, use with caution! + * + * @var array + */ + static public $contentUnvalidated; + /** * Process via Ajax submitted content * @@ -388,7 +395,7 @@ class Etemplate extends Etemplate\Widget\Template 'cont' => &self::$request->content, ); $template->run('validate', array('', $expand, $_content, &$validated), true); // $respect_disabled=true: do NOT validate disabled widgets and children - + self::$contentUnvalidated = $_content; if ($no_validation) { self::$validation_errors = array();