The checkbox is allways disabled.

notification

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

CommentFileSizeAuthor
notification.jpg28.31 KBslowflyer
commons_follow_ui2.patch716 bytesslowflyer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slowflyer’s picture

Issue summary: View changes
japerry’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.