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'];
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RedEight created an issue. See original summary.

RedEight’s picture

RedEight’s picture

Status: Active » Needs review
RedEight’s picture

Title: Undefined index: (open/close)_date_token » Undefined index (open/close)_date_token
FileSize
895 bytes

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

gcb’s picture

Status: Needs review » Fixed

Good catch, thanks!

  • gcb committed a8b8f7f on 7.x-2.x authored by RedEight
    Issue #2903034 by RedEight: Undefined index (open/close)_date_token
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.