In D7.8, on submitting /admin/config/system/nodeaccess, I get this error:
Notice: Undefined variable: alias_prefs in nodeaccess_admin_form_submit() (line 351 of /Applications/MAMP/htdocs/mediation-d7/sites/all/modules/nodeaccess/nodeaccess.module).

Settings:
Give node grants priority -> unchecked
Preserve hidden grants -> checked
Allowed Grants -> all checked
Allowed Roles -> default settings (notting checked, nothing filled)
My node type -> see attached screemdump

CommentFileSizeAuthor
nodeaccess-error.png33.75 KBhanskuiters

Comments

hanskuiters’s picture

Status: Active » Needs review

Solution:
change #351

nodeaccess_save_role_aliases($alias_prefs);

with

 if (isset($alias_prefs)) {
 nodeaccess_save_role_aliases($alias_prefs);
}
MStrzelecki_’s picture

Your patches are great ! Good job! Thanks!

vlad.pavlovic’s picture

Status: Needs review » Fixed

Fixed by initializing $alias_prefs to array(). Already committed to dev. Thanks.

Status: Fixed » Closed (fixed)

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