Skip to content

Commit 79bbee2

Browse files
authored
Fix(core): fix webapplication plugin integration (namespaced class) (#324)
1 parent 45ff257 commit 79bbee2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111

1212
- Fix tag search
13+
- Fix `webapplication` plugin integration
1314

1415
## [2.14.3] - 2025-12-22
1516

setup.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
use Glpi\Form\Migration\TypesConversionMapper;
3636
use Glpi\Form\QuestionType\QuestionTypesManager;
3737
use Glpi\Plugin\Hooks;
38+
use GlpiPlugin\Webapplications\Webapplication;
3839

3940
use function Safe\define;
4041

@@ -92,8 +93,8 @@ function plugin_init_tag()
9293
}
9394

9495
// Plugin Webapplication
95-
if (Plugin::isPluginActive('webapplications')) {
96-
$CFG_GLPI['plugin_tag_itemtypes'][__s('Assets')][] = 'PluginWebapplicationsWebapplication';
96+
if (Plugin::isPluginActive('webapplications') && class_exists(Webapplication::class)) {
97+
$CFG_GLPI['plugin_tag_itemtypes'][__s('Assets')][] = Webapplication::class;
9798
}
9899

99100
// Plugin fusioninventory

0 commit comments

Comments
 (0)