Closed (fixed)
Project:
Webform
Version:
7.x-3.8
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2011 at 16:33 UTC
Updated:
21 Mar 2011 at 15:41 UTC
Jump to comment: Most recent file
I get the following error code when choosing 'node/foo/submission/bar':
* Notice: Undefined index: 2 in _webform_client_form_rule_check() (Zeile 1837 von /var/www/drupal7/sites/all/modules/webform/webform.module).
* Notice: Undefined index: 2 in _webform_client_form_rule_check() (Zeile 1837 von /var/www/drupal7/sites/all/modules/webform/webform.module).
Thank you for fixing this! Great, essential module!!!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_undefined_index-d7.patch | 543 bytes | quicksketch |
Comments
Comment #1
quicksketchThanks for the report. This patch should correct the problem. This is just a "notice" error, which means it doesn't actually have any actual effect on you site other than the error message. Committed this patch to both 3.x branches.
Comment #2
Blooniverse commented... oh, another
isset()check/validation was lacking -- I should have known/recognized myself. Theese wrongly formulated respectively forgotten checks seem to be everywhere since Drupal7! Next time I am going to patch myself. Thanks for the effort, nevertheless!Comment #3
quicksketchThat's just because Drupal 7 explicitly defaults to showing all notices, when in Drupal 6 they were omitted or followed the global settings in php.ini (which also hides them by default).
Comment #4
Blooniverse commented... very well, then we will get the best code ever now :)
Nonetheless, such basic issues should actually stand out anyway (with or without certain error display settings), I have to say. Or not? I mean: I don't consider myself as a developer/programmer at first place, but my self made CMS 2001 and my integral business software 2006 didn't resp. don't have such fundamental flaws. That just should not happen. It just cannot work like this.