making unvalidated content available to application

This commit is contained in:
ralf 2023-10-23 22:26:33 +03:00
parent 6e65165660
commit 007fd09515

View File

@ -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();