Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller::isMultilang() is not working correctly #2605

Closed
fazliddin opened this issue Dec 14, 2016 · 1 comment
Closed

Controller::isMultilang() is not working correctly #2605

fazliddin opened this issue Dec 14, 2016 · 1 comment

Comments

@fazliddin
Copy link

NewsController::index() shows all news without filtering by language and changing:

if ($this->isMultilang()) {
            $dbCriteria->mergeWith(
                [
                    'condition' => 't.lang = :lang',
                    'params' => [':lang' => Yii::app()->getLanguage()],
                ]
            );
}

to

$dbCriteria->mergeWith(
            [
                'condition' => 't.lang = :lang',
                'params' => [':lang' => Yii::app()->getLanguage()],
            ]
);

solved the problem

@yupe yupe added this to the 1.1 milestone Dec 14, 2016
yupe added a commit that referenced this issue Dec 15, 2016
@yupe
Copy link
Owner

yupe commented Dec 15, 2016

Fixed, please check

@yupe yupe closed this as completed Dec 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants