View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000771 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2009-04-03 11:37 | 2012-12-07 14:29 |
Reporter | dainius.bigelis | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.1.0 revision 17976 | ||||
Summary | 0000771: Long description of variant is not inherited because wysiwyg editor leaves the mess in DB | ||||
Description | Select in Admin any variant-article, which has no Long description inserted. Up until now the Long description entry in DB is empty for this variant-article. In the Administer Products => Products => Main tab => WYSISYWG editor => Design tab - it is shown as empty. But in Source tab there is already text displayed: < p > < /p > So if user will click on "Save" in this case, this text will be stored to DB, and shop will interpret that variant-article already has own long description, and long description from parent-article will not be inherited for variant in this case. The same case occurs if user will delete long description from the variant-article (the < p > < / p > will be stored to DB). In such cases need to clear the text < p > < / p > from the DB (or ignore it when checking if article has long description) | ||||
Tags | Products | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
Editor has configurable parameter oEditor->emptyValue. Still, setting it to empty value does not solve the problem - when you click on preview tab editor automatically adds "< br / >". I made JS function cleanupLongDesc() which is called when user press submit button and which ckecks and cleans-up if value is "< br >" or "< br / >". |