View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005628 | OXID eShop (all versions) | 2.7. Customer info | public | 2014-01-28 18:03 | 2014-09-25 13:06 |
Reporter | szdirk | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.1 / 5.1.1 | ||||
Target Version | 4.7.14 / 5.0.14 | Fixed in Version | 4.7.14 / 5.0.14 | ||
Summary | 0005628: Changes in oxNews-Longdescription does not change in frontend | ||||
Description | If any smarty-tags are set in oxnews__oxlongdesc further changes of this xolongdesc are not shown in frontend. | ||||
Steps To Reproduce | OXID Demoshop 4.8.1: 1. Uncheck "Automatic detection of necessary Template re-compilation. Uncheck during normal operation for increased performance." in shop admin 2. Add any smarty tag, e.g. [{$oViewConf->getCurrentHomeDir()}] into any news (Admin - Customer Info - News) 3. Call that news in frontend 4. Change the news in admin (add one character etc.) 5. Changes are not shown in frontend | ||||
Additional Information | This behaviour does also exist in older shop versions. | ||||
Tags | News, Smarty | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
related to | 0005887 | resolved | aurimas.gladutis | cms-page cache is not updated when using smarty |
|
The problem is that parseThroughSmarty function was not forcing recompilation of news, cms pages and promotions long description templates. This was fixed by adding fourth parameter as true when parsing long descriptions like this: $oUtilsView->parseThroughSmarty($oxlongdesc, $id, null, true); Files that needs to be edited: oxnews.php::getLongDesc() content::getParsedContent() oxactions::getLongDesc() oxcategory::getLongDesc() This way descriptions is recompiled even when blCheckTemplates is set to true. |