File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
88## [ Unreleased]
99
10+ ### Fixed
11+
12+ - Improve global performance when using many genericobject
13+
1014## [ 2.14.11] - 2024-12-27
1115
1216### Fixed
Original file line number Diff line number Diff line change @@ -218,10 +218,14 @@ function plugin_post_init_genericobject()
218218 ['addtabon ' => ['Profile ' , 'PluginGenericobjectType ' ]]
219219 );
220220
221+
221222 foreach (PluginGenericobjectType::getTypes () as $ id => $ objecttype ) {
222223 $ itemtype = $ objecttype ['itemtype ' ];
223224 if (class_exists ($ itemtype )) {
224- $ itemtype ::registerType ();
225+ if (!isset ($ _SESSION ['glpi_plugin ' ]['genericobject ' ]['registeredtype ' ][$ itemtype ])) {
226+ $ _SESSION ['glpi_plugin ' ]['genericobject ' ]['registeredtype ' ][$ itemtype ] = $ itemtype ;
227+ $ itemtype ::registerType ();
228+ }
225229 }
226230 }
227231}
You can’t perform that action at this time.
0 commit comments