View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007335 | OXID eShop (all versions) | 2.4. Administer products | public | 2022-07-14 09:00 | 2024-08-07 13:41 |
Reporter | weisgerber | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 6.4.1 | ||||
Fixed in Version | 7.0.0 | ||||
Summary | 0007335: Active-Icon not visible | ||||
Description | There is no green icon anymore in the list-view to see whether the article is active or not I already found the solution to fix the problem: https://github.com/OXID-eSales/oxideshop_ce/blob/v6.10.2/source/Application/Controller/Admin/ArticleList.php#L56 The Condition for $oArticle->oxarticles__oxactive->value === '1' should be: $oArticle->oxarticles__oxactive->value === 1 or $oArticle->oxarticles__oxactive->value == '1' | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | 8.1 | ||||
Database Version | Not defined | ||||
|
-MK |
|
Hi, I just tested the case again and I can't reproduce it anymore. I tested it with the databases MySQL 5.7 and MariaDB 10.4 on a system with PHP 8.0. Furthermore I added declare(strict_types=1); at the top of the class, but the condition doesn't fail, because the return type of $oArticle->oxarticles__oxactive->value is string(1) "1". Could you recheck or provide more information, please? Kind regards Michael |
|
Hi Michael, it seems to only happen with php8.1 but that version is not supported by OXID. Sorry for the confusion. But you can of course take it into account for the next version jump :) |
|
acknowledged, since it's an upcoming issue. -MK |
|
This has been refactored in OXID 7 to https://github.com/OXID-eSales/oxideshop_ce/blob/b520327cb16583533cf89060f2e52e3e675b72ba/source/Application/Controller/Admin/ArticleList.php#L329 |