View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000914 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2009-05-19 16:14 | 2009-11-18 10:57 |
| Reporter | marco_steinhaeuser | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 4.1.2 revision 18998 | ||||
| Summary | 0000914: Problem with selection lists and special characters | ||||
| Description | Newly entered or adopted entries with special characters in selection lists will be saved as entities to the database. The next record will tread the & sign as an entity as well. from this post: http://www.oxid-esales.com/de/resources/forum/installation-and-configuration/problem-mit-auswahllisten-und-sonderzeichen-im-be | ||||
| Additional Information | In selectlist_main.php add to lines 136-145 before setValue : html_entity_decode $oAttr->oxselectlist__oxvaldesc = new oxField(""); foreach ( $this->aFieldArray as $oField) { $oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . $oField->name)); if ( isset( $oField->price) && $oField->price) { $oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . "!P!" . trim(str_replace( ",", ".", $oField->price)))); if ($oField->priceUnit == '%') $oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . '%')); } $oAttr->oxselectlist__oxvaldesc->setValue( html_entity_decode($oAttr->oxselectlist__oxvaldesc->value . "__@@")); } | ||||
| Tags | No tags attached. | ||||
| Theme | |||||
| Browser | All | ||||
| PHP Version | 5.2.6 | ||||
| Database Version | 5.0.33 | ||||
|
|
Would be nice to see example data that couses the problem. I created and few times saved/updated selection list with data like "test & " ' #$%", checked DB and found no problem in here - no special chars were encoded and written. There are two cases that can be misunderstood by user, so i'm writing here: 1. oxSelectList::getFieldList() returns specially formatted data where special characters are encoded; 2. a) oxSelectList->oxselectlist__oxvaldesc->value - returns data in safe format - special characters are encoded; b) oxSelectList->oxselectlist__oxvaldesc->getRawValue() - returns data in plain form - special characters are left non encoded. |
|
|
Reminder sent to: marco_steinhaeuser any comments regarding this bug entry? |