Clear & reset content, modifications & readonlys when resetting the request.

This commit is contained in:
nathangray 2019-06-13 10:14:08 -06:00
parent 673bd330c9
commit 4d8164bb77
2 changed files with 4 additions and 0 deletions

View File

@ -1346,6 +1346,7 @@ abstract class admin_cmd
else else
{ {
$tpl = Api\Etemplate::instance($name); $tpl = Api\Etemplate::instance($name);
Api\Etemplate::reset_request();
} }
} }
return $tpl ? $tpl : null; return $tpl ? $tpl : null;

View File

@ -551,6 +551,9 @@ class Etemplate extends Etemplate\Widget\Template
public static function reset_request() public static function reset_request()
{ {
self::$request = Etemplate\Request::read(); self::$request = Etemplate\Request::read();
self::$request->content = array();
self::$request->modifications = array();
self::$request->readonlys = array();
self::$cache = array(); self::$cache = array();
} }
/** /**