sharethis_update_7002 was added in #2759221: Unable to select services on the configuration page to clean up the sharethis_service_option variable. After updating to 7.x-2.x-dev, the services were still broken for me. I took a look at value of sharethis_service_option prior to update hook running at it looked like this:

"Facebook:facebook
","Twitter:twitter","Email:email"

Here is a patch that will also strip out amp; to fully make the changes in #2759221: Unable to select services on the configuration page work for all. Special thanks to @navneet0693 for helping me understand this on IRC.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vinmassaro created an issue. See original summary.

vinmassaro’s picture

Status: Active » Needs review
FileSize
913 bytes
vinmassaro’s picture

FileSize
1.13 KB

New patch to get the variable once, set the variable once.

navneet0693’s picture

+++ b/sharethis.install
@@ -83,6 +83,9 @@ function sharethis_update_7001() {
+  $sharethis_service_option = str_replace('amp;', '', $sharethis_service_option);

I am not sure, but only one service will get affected that is AT&T by this, which is saved like this "AT&T:att". I cannot see much differences, AT&T still appears :) Good to go, thanks for the patch!

navneet0693’s picture

Status: Needs review » Reviewed & tested by the community

purushotam.rai’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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