Skip to content

Commit 3d08f03

Browse files
authored
Fix(core): fix bad SQL table used for GO migration (#1070)
* Fix(core): fix bad SQL table used for GO migration * adapt CHANGELOg
1 parent 5c25d31 commit 3d08f03

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [UNRELEASED]
99

10+
### Fixed
11+
12+
- Fix bad SQL query for `GenericObject`
13+
1014
### Added
1115

1216
- Implement `Field` question type for new GLPI forms

inc/container.class.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,7 @@ public static function installBaseData(Migration $migration, $version)
181181
}
182182

183183
$migration_genericobject_itemtype = [];
184-
$result = $DB->request([
185-
'FROM' => 'glpi_plugin_genericobject_types',
186-
'WHERE' => [
187-
new QueryExpression(
188-
$table . ".itemtypes LIKE '%PluginGenericobject%'",
189-
),
190-
],
191-
]);
192-
184+
$result = $DB->request(['FROM' => 'glpi_plugin_genericobject_types']);
193185
foreach ($result as $type) {
194186
$customasset_classname = 'Glpi\\\\CustomAsset\\\\' . $type['name'] . 'Asset';
195187
if (str_ends_with($type['itemtype'], 'Model')) {

0 commit comments

Comments
 (0)