View Issue Details

IDProjectCategoryView StatusLast Update
0007335OXID eShop (all versions)2.4. Administer productspublic2024-08-07 13:41
Reporterweisgerber Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version6.4.1 
Fixed in Version7.0.0 
Summary0007335: Active-Icon not visible
DescriptionThere 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'
TagsNo tags attached.
Attached Files
2022-07-14 08_58_49-Window.png (26,826 bytes)   
2022-07-14 08_58_49-Window.png (26,826 bytes)   
ThemeNot defined
BrowserAll
PHP Version8.1
Database VersionNot defined

Activities

QA

2022-07-14 13:18

administrator   ~0013845

-MK

QA

2022-07-14 14:02

administrator   ~0013846

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

weisgerber

2022-07-14 14:38

reporter   ~0013847

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 :)

QA

2022-07-14 15:12

administrator   ~0013848

Last edited: 2022-07-14 15:13

acknowledged, since it's an upcoming issue.
-MK

SvenBrunk

2024-08-07 13:41

administrator   ~0017369

This has been refactored in OXID 7 to https://github.com/OXID-eSales/oxideshop_ce/blob/b520327cb16583533cf89060f2e52e3e675b72ba/source/Application/Controller/Admin/ArticleList.php#L329