Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$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.
Comment | File | Size | Author |
---|---|---|---|
#2 | livehelperchat-fix-dept-id-default-2705775-2.patch | 587 bytes | jenna.tollerson |
Comments
Comment #2
jenna.tollersonEdit: Added org to credit.
Comment #3
lukio CreditAttribution: lukio commentedPatch works!
Comment #4
jenna.tollersonThis is likely ready to be committed.
Comment #5
jenna.tollersonComment #7
jenna.tollerson