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

danielb’s picture

What do you mean by 'bulk update' ? I don't see such an option anywhere, I don't get this VBO thing

danielb’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry 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".

danielb’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

If 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.