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

Delete not working in gridview if csrf support is enabled #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable CRSF support
main.php:
'request'=>array(
   'enableCsrfValidation'=>true,
2. Select operations view
3. try to delete some item from list

What is the expected output? What do you see instead?
Delete should work. Currently "Error 400 The CSRF token could not be verified." 
is displayed.

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

Please provide any additional information below.
Can be fixed by adding 'csrf'=>true, to CHtml::linkButton html options.
Also other link generations seems to have same problem.

Original issue reported on code.google.com by pasi.ha...@gmail.com on 17 Sep 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Hello Pasi,

This has been fixed in the trunk. Thanks for reporting this issue.

Best regards,
Chris

Original comment by cni...@live.com on 23 Sep 2010 at 11:48

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r109.

Original comment by cni...@live.com on 23 Sep 2010 at 11:49