Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fix form submission error when a multiple dropdown field question is left empty
- Fix search criterion value on multiple dropdown fields being reset after a search, which emptied the criterion when sorting or paging results
- Fix GenericObject migration error message to name the required 3.0.x version

## [1.24.7] - 2026-10-28

Expand Down
3 changes: 2 additions & 1 deletion inc/migration.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ public static function getGenericObjectTypes(): array
// Check GenericObject version
$genericobject_info = Plugin::getInfo('genericobject');
if (version_compare($genericobject_info['version'] ?? '0', '3.0.0', '<')) {
// GitHub "latest" release is the GLPI 10 branch (2.14.x), so 3.0.x must be named explicitly.
throw new RuntimeException(
'GenericObject plugin cannot be migrated. Please update it to the latest version.',
'GenericObject plugin cannot be migrated: version 3.0.x is required. Please install the latest 3.0.x release.',
);
}

Expand Down
1 change: 1 addition & 0 deletions tests/Units/FieldGenericObjectMigrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function testMigrationGuardTriggersWhenGenericobjectFieldsExist(): void
$this->fail('Expected RuntimeException was not thrown.');
} catch (RuntimeException $runtimeException) {
$this->assertStringContainsString('GenericObject plugin cannot be migrated', $runtimeException->getMessage());
$this->assertStringContainsString('version 3.0.x is required', $runtimeException->getMessage());
}

$this->hasPhpLogRecordThatContains(
Expand Down
Loading