When allowing "Link display" and not "View mode" in the "Overrides per node" settings on the content type form, the corresponding node form throws the following errors:
Notice: Undefined variable: options in nodeblock_form_node_form_alter() (line 263 of /home/joanne/public_html/sites/default/modules/nodeblock/nodeblock.module).
Warning: Invalid argument supplied for foreach() in form_select_options() (line 2675 of /home/joanne/public_html/includes/form.inc).
This is because the $options
variable for the "Node Link Display" select box on the node form is declared in the wrong block of code in nodeblock.module
.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2097441-Undefined_variable_options.patch | 873 bytes | mesr01 |
#1 | 2097441-Undefined_variable_options.patch | 873 bytes | mesr01 |
Comments
Comment #1
mesr01 CreditAttribution: mesr01 commentedThe following patch is against dev.
Comment #2
mesr01 CreditAttribution: mesr01 commentedThe following patch is against dev.
Comment #3
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedI've committed your fix here:
http://drupalcode.org/project/nodeblock.git/commit/d290ebf
thank you!