yii-user-management
yii-user-management copied to clipboard
Problem with comment of profile (bugs from simplified profile modules)
YumProfileCommentController has error and cause error in delete profile comments. In line 50
$this->redirect(array(Yum::module()->profileView, 'id' => $comment->profile->user_id));
should change to $this->redirect(array(Yum::module('profile')->profileViewRoute, 'id' => $comment->profile->user_id));
beside the install controller have remove a column from profile table which is allow_comments in line below around line 214.
$sql = "CREATE TABLE IF NOT EXISTS `" . $profileTable . "` (
`id` int unsigned NOT NULL auto_increment,
`user_id` int unsigned NOT NULL,
`lastname` varchar(50) NOT NULL default '',
`firstname` varchar(50) NOT NULL default '',
`allow_comments` tinyint(1) DEFAULT 1,
refer to my fork https://github.com/haleychin/yii-user-management commit id c894cac76026c3ea1b58a671d40bf33d818e8fc0