I get this notice whenever I try to save settings in admin/config/people/pcp:
Notice: Undefined index: pcp_enable_user_picture in pcp_admin_settings_submit() (line 211 of /path/to/modules/pcp/pcp.admin.inc).
It appears the form field is conditionally created, but unconditionally read out. This patch adds the same condition around the setting as is used to create the form field.
| Comment | File | Size | Author |
|---|---|---|---|
| 0001-Only-save-picture-settings-when-pictures-are-enabled.patch | 1.01 KB | Peter Bex |
Comments
Comment #1
BarisW commentedDoesn't conform to the coding standards. We need {} for if statements. So it should be:
Other than this: good catch. Will be committed in the next round of changes.
Comment #2
Peter Bex commentedOh sorry about that. I should read the style guide more thoroughly I guess
Comment #3
BarisW commentedAdded to .dev with proper git attribution. Thanks!