The values for field "Button image HTML attributes" in the admin interface for the module (admin/settings/addtoany) is not aplied or saved.
After changing and saving it, the field keef the value: alt="Share/Save".

Drupal version: 6.9
Module version: addtoany 6.x-2.0

CommentFileSizeAuthor
#2 addtoany-6.x-2.0_380180.patch1.29 KBMichel77

Comments

Michel77’s picture

This can be fixed by changing line 63 of addtoany.admin.inc

from:
$form['addtoany_button_settings']['addtoany_custom_image_attributes'] = array(

to:
$form['addtoany_button_settings']['addtoany_image_attributes'] = array(

Greatings,
Michel77

Michel77’s picture

Status: Active » Needs review
StatusFileSize
new1.29 KB

Created a patch with the fix described in post #1 for Field "Button image HTML attributes" not saved (admin page)

Fixes: Saving of field "Button image HTML attributes".

Changes: File "addtoany.admin.inc", line 63
from: - $form['addtoany_button_settings']['addtoany_custom_image_attributes'] = array(
to:    + $form['addtoany_button_settings']['addtoany_image_attributes'] = array(

Greetings,
Michel Sijmons

kars-t’s picture

Status: Needs review » Reviewed & tested by the community

Array Key Names must match. And in 6.x-2.3 there is still the same bug!
Please add this patch its now line 86.

micropat’s picture

Assigned: Unassigned » micropat
Status: Reviewed & tested by the community » Patch (to be ported)

Will be fixed in version 2.5!

Anonymous’s picture

Assigned: micropat »
Status: Patch (to be ported) » Closed (duplicate)