mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
do not send/set extra data twice for multiple etemplate (eg. CRM view)
This commit is contained in:
parent
306e3488ba
commit
f87e456be2
@ -169,6 +169,7 @@ class etemplate_new extends etemplate_widget_template
|
||||
{
|
||||
//error_log("Ajax " . __LINE__);
|
||||
self::$response->generic('et2_load', $load_array+egw_framework::get_extra());
|
||||
egw_framework::clear_extra(); // to not send/set it twice for multiple etemplates (eg. CRM view)
|
||||
}
|
||||
else // first call
|
||||
{
|
||||
|
@ -331,6 +331,14 @@ abstract class egw_framework
|
||||
self::$extra[$app.'-'.$name] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all extra data
|
||||
*/
|
||||
public static function clear_extra()
|
||||
{
|
||||
self::$extra = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow eg. ajax to query content set via refresh_opener or window_close
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user