View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002689 | OXID eShop (all versions) | 4.06. Language and translations | public | 2011-04-04 14:56 | 2011-08-16 16:46 |
Reporter | Helmut L. | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0_beta4 | ||||
Fixed in Version | 4.5.2 revision 38481 | ||||
Summary | 0002689: Check if language field exists searchs always in one table | ||||
Description | When creating a new language the check if the multilang fields already exists is always in oxarticles performed and not in the table getLangTableName would return. | ||||
Additional Information | Enterprise Edition /admin/language_main.php, Line 381 is currently: if ( !$oDbMeta->fieldExists( $sMultiLangCol, "oxarticles" ) ) { should be: if ( !$oDbMeta->fieldExists( $sMultiLangCol, getLangTableName('oxarticles', $iBaseId) ) ) { | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
This bug is in the latest revision already fixed. (partnersvn, revision 1861) |
|
The same bug is also in oxDbMetaDataHandler, where it is not fixed. In the method addNewMultilangField on line 358 is, before adding the field, checked if it exists. But here the check is performed with the main table and not the table from getLangTableName. is currently: if ( !$this->fieldExists( $sNewFieldName, $sTable ) ) { should be: if ( !$this->fieldExists( $sNewFieldName, $sTableSet ) ) { |
|
@developers: check from source code side if described problems (in main bug description and in comments) still exist |
|
modified check |