View Issue Details

IDProjectCategoryView StatusLast Update
0002702OXID eShop (all versions)4.06. Language and translationspublic2011-08-17 10:07
ReporterHelmut L. 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.0_beta4 
Target VersionFixed in Version4.5.2 revision 38481 
Summary0002702: Views are not updated if a language is added through a shell script
DescriptionIf you call the method addNewLangToDb from oxDbMetaDataHandler, the last method called is updateViews. In this method the views are only updated if the session variable "malladmin" is set.
But if you call this method from a shell script there is no session at all and thus the views are never updated.
Steps To ReproduceCreate a shell script and call addNewLangToDb. Afterwards there will be new language fields but the views are not changed.

$oDbMeta = oxNew( "oxDbMetaDataHandler" );
$oDbMeta->addNewLangToDb();
Additional InformationEnterprise Edition
/core/oxdbmetadatahandler.php, line 463
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0002471 resolvedalfonsas_cirtautas Not possible to create more than 8 languages 

Activities

Linas Kukulskis

2011-08-17 10:07

reporter   ~0005034

removed session variable check

PS

you can always call directrly: oxDb::getInstance()->updateViews(); :)