Consider PRODUCT_BLOCKED as DISCONTINUED

This commit is contained in:
Jan Böhmer 2026-08-02 21:16:34 +02:00
parent 57a6a27051
commit 642012f6c5

View file

@ -292,11 +292,10 @@ class TMEProvider implements InfoProviderInterface, URLHandlerInfoProviderInterf
return ManufacturingStatus::EOL;
}
if (in_array('INVALID', $statusArray, true)) {
return ManufacturingStatus::DISCONTINUED;
}
if (in_array('NOT_IN_OFFER', $statusArray, true)) {
if (in_array('INVALID', $statusArray, true) ||
in_array('PRODUCT_BLOCKED', $statusArray, true) ||
in_array('NOT_IN_OFFER', $statusArray, true)
) {
return ManufacturingStatus::DISCONTINUED;
}