The following 'error' appears on the user edit page Newsletter tab when both Force Password Change (7.x-1.0-rc2) and Simplenews (7.x-1.0-beta1) modules is installed;

Notice: Undefined index: account in force_password_change_form_alter() (line 421 of .../sites/all/modules/force_password_change/force_password_change.module).

Notice: Undefined index: pass in force_password_change_form_alter() (line 442 of .../sites/all/modules/force_password_change/force_password_change.module).

Observed on fairly clean Drupal 7.12 installation.

CommentFileSizeAuthor
fpc_notice.png45.11 KBdeclassified

Comments

jmann8888’s picture

and a 7.14 install

jmann8888’s picture

Category: bug » support
Status: Active » Needs review

here is a fix

open force_password_change.module

replace line 421 with if(isset($form['account']))

on line 442 make a return then on line 442 add if(isset($use_form['pass'])) {

on line 445 add }

problem solved :)

modiphier’s picture

great.. nice fix. thanks why hasn't it been added?

klonos’s picture

Category: support » bug
Status: Needs review » Reviewed & tested by the community

...perhaps now?

  • SpartyDan committed 72d94b2 on 7.x-1.x
    Issue #1440660 by jmann8888: Notice: Undefined index: account in...
SpartyDan’s picture

Version: 7.x-1.0-rc2 » 7.x-1.0
Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Fixed in 7.x-1.0

SpartyDan’s picture

Status: Fixed » Closed (fixed)