View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006344 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2016-03-07 14:46 | 2024-03-07 09:59 |
Reporter | [email protected] | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Product Version | 4.9.7 / 5.2.7 | ||||
Summary | 0006344: oxcmp_utils always null | ||||
Description | Currently 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 Reproduce | Try to use a methof of oxcmp_utils in a view. | ||||
Tags | No tags attached. | ||||
Theme | All | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
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 |