The checkbox is allways disabled.

Reason:
if($account != $user) {
$form['message_subscribe_email']['#disabled'] = TRUE;
}is always true, even when visiting the own profile:
Solution:
if($account->uid != $user->uid) {
$form['message_subscribe_email']['#disabled'] = TRUE;
}does the job
| Comment | File | Size | Author |
|---|---|---|---|
| notification.jpg | 28.31 KB | slowflyer | |
| commons_follow_ui2.patch | 716 bytes | slowflyer |
Comments
Comment #1
slowflyer commentedComment #2
japerryYup. thats simple, fixed.
http://drupalcode.org/project/commons.git/commit/d51a3cc