mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Clear & reset content, modifications & readonlys when resetting the request.
This commit is contained in:
parent
673bd330c9
commit
4d8164bb77
@ -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;
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user