$form['widget']['livehelperchat_department'] = array(
    '#type' => 'textfield',
    '#title' => t('Department ID'),
    '#default_value' => variable_get('livehelperchat_department_id', ''),
  );

As you can see, even though the field is called 'livehelperchat_department', the default value is set to 'livehelperchat_department_id'. This means even though the value saves correctly on submit, the next time the configuration form is viewed the value will be gone.

I'm working on a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jenna.tollerson created an issue. See original summary.

jenna.tollerson’s picture

Status: Active » Needs review
FileSize
587 bytes

Edit: Added org to credit.

lukio’s picture

Status: Needs review » Reviewed & tested by the community

Patch works!

jenna.tollerson’s picture

Assigned: jenna.tollerson » Unassigned

This is likely ready to be committed.

jenna.tollerson’s picture

Assigned: Unassigned » jenna.tollerson

  • jenna.tollerson committed 1c5d39d on 7.x-1.x
    Issue #2705775 by jenna.tollerson: Department ID field's default_value...
jenna.tollerson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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