Skip to content
Merged
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 @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fix `Some mandatory fields are empty` error displayed when creating an item with an assigned technician
- Fix item creation failing when a Yes/No field has a non boolean default value
- Fix search on number fields: `is` / `is not` ignoring values from 1000, `<` / `>` comparing values as text, and `is not` excluding items without value
- Fix GenericObject migration error message to name the required 3.0.x version

## [1.25.1] - 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