tingobol / yii-rights

Automatically exported from code.google.com/p/yii-rights
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

problem when different name for the id column in User #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
add the following code in controllers/AssignmentController line 85:

$userIdColumn = $this->module->userIdColumn;
        $model = CActiveRecord::model($userClass)->findByAttributes(array($userIdColumn=>$_GET['id']));

instead of:
$model = CActiveRecord::model($userClass)->findByPk($_GET['id']);

What is the expected output? What do you see instead?
nothing different. This fixes the error when you have different column name 
instead of the default id. 

What version of the product are you using? On what operating system?
1.3.0

Please provide any additional information below.

Original issue reported on code.google.com by samir...@gmail.com on 21 Jul 2011 at 1:01