The automated tester is currently failing with the following
registration_convert_form_settings
exception: [Notice] Line 920 of sites/all/modules/registration/includes/registration.forms.inc:
Undefined index: open_date_token
exception: [Notice] Line 921 of sites/all/modules/registration/includes/registration.forms.inc:
Undefined index: close_date_token
This is because the Token module is not present so $values['scheduling']['open_date_token'] and $values['scheduling']['close_date_token'] are both undefined. To fix this, we should probably remove those keys from the array and add them via
if (module_exists('token')) {
$fields['open_date_token'] = $values['scheduling']['open_date_token'];
$fields['close_date_token'] = $values['scheduling']['close_date_token'];
}| Comment | File | Size | Author |
|---|---|---|---|
| #4 | undefined-index-2903034-4.patch | 895 bytes | redeight |
| #2 | undefined-index-2903034-1.patch | 719 bytes | redeight |
Comments
Comment #2
redeight commentedComment #3
redeight commentedComment #4
redeight commentedI was having issues with my setup which DID have tokens but those indexes still weren't present. Added a check to ensure they are present.
Comment #5
gcbGood catch, thanks!