View Issue Details

IDProjectCategoryView StatusLast Update
0006344OXID eShop (all versions)4.07. Source code, Testpublic2024-03-07 09:59
Reporter[email protected] Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version4.9.7 / 5.2.7 
Summary0006344: oxcmp_utils always null
DescriptionCurrently it is not possible to use oxcmp_utils in a view because oxcmp_utils is always null. The component is assigned to the view in oxubase.php on line 2295.
The render method of each component is called in this line. The render method of oxcmp_utils returns always null. All the other components are returning an instance of themself.
Steps To ReproduceTry to use a methof of oxcmp_utils in a view.
TagsNo tags attached.
ThemeAll
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

Sven Brunk

2024-03-06 13:40

administrator   ~0016370

Actually, the statement is not really true. Each component returns different types of objects depending on the type of the component and its intended use. The UtilsComponent is special in a way that it has no such thing as a "main object type" that it is working on.
There are a few "templates" that are using these utility methods.:
E.g.: https://github.com/OXID-eSales/apex-theme/blob/4dda3e53bdba0269238f9a107f00793bd58d224d/build/js/pages/checkout/basket/movetonoticelist.js#L3
or
https://github.com/OXID-eSales/apex-theme/blob/4dda3e53bdba0269238f9a107f00793bd58d224d/tpl/page/account/wishlist.html.twig#L35