When I use Webform (3.18 or 4 alpha 06), I get these warnings when I show a submission.
Seems to be related to multipage forms.
Notice: Undefined property: stdClass::$delta in homebox_forms() (Zeile 202 von ...sites/all/modules/homebox/homebox.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | homebox-hook_forms-1893982-5.patch | 1.08 KB | maximpodorov |
| #2 | homebox-hook_forms-1893982-1.patch | 1.04 KB | chaby |
Comments
Comment #1
chrbak commentedI have the same issue. Altering the line 202 with the bellow solved my problem:
case isset($args[1]) && is_object($args[1]) && isset($args[1]->delta) ? 'homebox_block_edit_' . $args[1]->module . '_' . $args[1]->delta . '_form' : NULL:Comment #2
chaby commentedSame issue, here is a patch to avoid conflict with other modules
Comment #3
mgiffordThis looks like a good improvement. Works fine on simplytest.me.
Comment #4
amirtaiar commentedWorks fine for me with Mailchimp block.
Thank you.
Comment #5
maximpodorov commentedThis patch is for current dev version which already checks delta existence. So the patch doesn't adds more checks, but makes the code not so ugly.
Comment #6
drummCommitted with a small change, the second if can be an elseif.