?
avatar jancinert
jancinert
28 Oct 2015

file installation/controller/setdefaultlanguage.php
InstallationControllerSetdefaultlanguage::execute

Form field "installLocalisedContent" is not checked in the code.
A category and articles for each language are always created even if the related toggle is turned off.

if (!$error)
{
    $tableCategory = $model->addCategory($siteLang);

    if ($tableCategory === false)
    {
        $app->enqueueMessage(JText::sprintf('INSTL_DEFAULTLANGUAGE_COULD_NOT_CREATE_CATEGORY', $frontend_lang));
        $error = true;
    }
}

if (!$error)
{
    $categoryId = $tableCategory->id;

    if (!$model->addArticle($siteLang, $categoryId))
    {
        $app->enqueueMessage(JText::sprintf('INSTL_DEFAULTLANGUAGE_COULD_NOT_CREATE_ARTICLE', $frontend_lang));
        $error = true;
    }
}
avatar jancinert jancinert - open - 28 Oct 2015
avatar infograf768
infograf768 - comment - 29 Oct 2015

I confirm the issue.

avatar zero-24 zero-24 - change - 29 Oct 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 29 Oct 2015
Category Installation
avatar zero-24 zero-24 - change - 29 Oct 2015
Status New Confirmed
avatar infograf768
infograf768 - comment - 29 Oct 2015

Please test this patch
#8203

avatar jancinert
jancinert - comment - 29 Oct 2015

I reviewed the code and it passed my review.

avatar jancinert jancinert - change - 29 Oct 2015
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2015-10-29 22:22:17
Closed_By jancinert
avatar jancinert jancinert - close - 29 Oct 2015

Add a Comment

Login with GitHub to post a comment