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

Bug AssignmentController::actionView #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this bug doesn't allow to change the configuration parameters of the 
RAssignmentDataProvider because its construct accept 2 arguments, but on 
actionView it call with 1 arg.

Solution:

1) in AssignmentController::actionView to add null
$dataProvider = new RAssignmentDataProvider(null, array(
            'pagination'=>array(
                'pageSize'=>50,
            ),
        ));
2) In RAssignmentDataProvider change construct without $modelClass:
__construct($config=array())

Original issue reported on code.google.com by marco.pa...@gmail.com on 29 Mar 2011 at 3:39

GoogleCodeExporter commented 9 years ago
Hey macro,

Thanks for reporting this, this has been fixed in Rights 1.3.0.

Original comment by Christof...@gmail.com on 31 Mar 2011 at 8:29