View Issue Details

IDProjectCategoryView StatusLast Update
0002718OXID eShop (all versions)4.06. Language and translationspublic2011-08-16 17:02
ReporterHelmut L. 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.0_beta4 
Target VersionFixed in Version4.5.2 revision 38481 
Summary0002718: views for one language contain only fields from main table
DescriptionIf there are more than iLangPerTable languages, the additional languages are in a separate table. When the fields for the view of one language are fetched, only the fields of the main table are fetched. Thus the views for the additional languages do not contain the fields of that languages.

To correct this the fields should not be fetched from the main table, but instead from the view with all languages.
Additional InformationEnterprise Edition
/core/oxdbmetadatahandler.php, line 294

is currently:
$aFields = $this->getFields( $sTableName );

should be:
$aFields = $this->getFields( getViewName($sTableName, -1) );
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0002692 resolvedLinas Kukulskis When there is only one langauge per table, multilanguage fields can not be recognized 

Activities

birute_meilutyte

2011-05-02 15:06

reporter   ~0004431

@developers: check from source code side if such issue still exist

Linas Kukulskis

2011-08-16 15:42

reporter   ~0005024

at least 2 languages per table must be save.

added check for this statement updated documentation.

Helmut L.

2011-08-16 16:17

reporter   ~0005029

What exactly do you mean with "at least 2 languages per table must be save."?
And which version is meant with "Fixed in Version Patch"?

I've checked the file oxdbmetadatahandler.php in /svnpe/branches/features/PE/, /svnpe/tags/PE-4.5.1-38045/ and /svnpe/trunk/PE but non of them was recently edited.

Linas Kukulskis

2011-08-16 17:02

reporter   ~0005031

because only way to know is it multi language field is the prefix "_X". at least 2 languages must be in table that these indexes will exist.

fixe made in oxfunction.php file in method getLangTableIdx