From d9e21fd01acc1891cb319aab84cabcabc461ffa9 Mon Sep 17 00:00:00 2001 From: Vadim Mazur Date: Tue, 10 Nov 2015 12:20:54 +0500 Subject: [PATCH] Update YumUser.php Fix bug with `tablePrefix` --- user/models/YumUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/models/YumUser.php b/user/models/YumUser.php index f72b142..b4d836f 100644 --- a/user/models/YumUser.php +++ b/user/models/YumUser.php @@ -126,7 +126,7 @@ public function search() { } if (Yum::hasModule('role') && $this->filter_role) { - $criteria->join = 'left join user_role on t.id = user_role.user_id'; + $criteria->join = 'left join {{user_role}} user_role on t.id = user_role.user_id'; $criteria->addCondition('user_role.role_id = '.$this->filter_role); }