Closed (won't fix)
Project:
Block reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2012 at 15:11 UTC
Updated:
20 May 2012 at 08:47 UTC
There seems to be a bug when using Block reference together with Views Bulk Operations (using v. 7.x-3.0-rc1+14-dev). When trying to bulk update nodes (where I have a Block reference field, I get this notice:
Notice: Undefined index: bundle_product_default_display in blockreference_select_sort_process() (row 787 of /home/.../sites/all/modules/blockreference/blockreference.module).
$field_name on that row (787) refer to $element['#parents'][0] but there is no "[0]" in the #parents array:
#parents (Array, 1 element)
bundle_product_default_display (Array, 1 element)
#fields (Array, 5 elements)
body (Array, 1 element)
....
The bulk update works fine though.
Comments
Comment #1
danielb commentedWhat do you mean by 'bulk update' ? I don't see such an option anywhere, I don't get this VBO thing
Comment #2
danielb commentedSorry I don't know what to do about this. I don't completely understand the report, I don't use VBO, I don't get "notice" level errors on my sites, and I don't know what code could possibly replace $element['#parents'][0] to have the same/intended functionality, but without the bug.
If you can suggest a fix, that would be helpful, but otherwise this is heading to "won't fix".
Comment #3
danielb commentedIf there is anything more to add to solve this, such as a patch, please reopen.
As ugly as a random notice on the site is, I'm not too worried about this bug since the VBO functionality still works, and it only appears for an admin process which is probably rarely invoked.