Closed (fixed)
Project:
Homebox - Individual user dashboards
Version:
7.x-2.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 May 2011 at 03:32 UTC
Updated:
4 Jan 2014 at 00:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
brianV commentedCan't reproduce. Anyone else?
Comment #2
wesnick commentedI have seen this error on a site I am building. Basically any use of the entity API will potentially cause this error.
In the implementation of hook_forms on lines 195-205 in homebox.module, there is a simple conditional within a switch:
So essentially, any form that passes an object as the second argument will return TRUE for this statement. Almost all Entity API framework forms pass 3 variables: $entity_type, $entity, $op, so they will return true for this, but they don't have a delta.
I am not sure what is going on here, but if you are trying to catch homebox block form implementations, might have to add a
conditional to make sure we are not getting any old form generated with drupal.
Comment #3
wesnick commentedOK, I get it now, you are checking to find any block forms on the homebox page that may have submit buttons, so as to add ajax action to them.
I am using this line as a patch:
very long and ugly, but seems to work.
Comment #4
rv0 commentedPatch by JaakkoL in #1088242: Undefined index: module in homebox_build() (line 360 of homebox.module) works for this
I post it here for clarity
Comment #5
mzwyssig commented#4 works for me as well. Will this get committed ?
Comment #6
drummCommitted.