Hello,
after updating core from 7.38 to 7.39, autocomplete in campaign insert content edit page not working anymore.
As related in this, I end up changing the line $form['entity_import']['entity_id']['#attribute']['id'] = $section . '-entity-import-entity-id'; with this one $form['entity_import']['entity_id']['#id'] = $section . '-entity-import-entity-id'; in the file modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc.
Everything works fine after this modification. Sorry I don't have the time to learn how to commit a patch now.
Regards,
Loïc

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aliod created an issue. See original summary.

Greg Boggs’s picture

Status: Active » Needs review
FileSize
878 bytes

Thanks for reporting the issue Loïc. I've attached the above code as a patch to make review easier. This needs to be replicated, reviewed, and tested.

To create the patch I did the following:

git clone --branch 7.x-3.x http://git.drupal.org/project/mailchimp.git
cd mailchimp

Make the change.

git diff > mailchimp-site-content-campaign-autocomplete-2558465.patch

dmsmidt’s picture

Status: Needs review » Reviewed & tested by the community

Works for me!

thejimbirch’s picture

Works for me also.

  • jami committed cc13c82 on authored by Greg Boggs
    Issue #2558465 by Greg Boggs: Insert site content campaign autocomplete
    
jami’s picture

Version: 7.x-3.4 » 7.x-3.x-dev
Status: Reviewed & tested by the community » Fixed

Works great. Thanks aliod, Greg, and other reviewers!

Status: Fixed » Closed (fixed)

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

mubiesam’s picture

Applied the patch, the autocomplete worked to show the
[mailchimp_campaign|entity_type=node|entity_id=5|view_mode=teaser]
but only the code, it will not display the content in the preview...

Any suggestion...
Thanks,

mubiesam’s picture

Status: Closed (fixed) » Active

  • jami committed cc13c82 on 7.x-4.x authored by Greg Boggs
    Issue #2558465 by Greg Boggs: Insert site content campaign autocomplete
    

  • jami committed cc13c82 on 8.x-1.x authored by Greg Boggs
    Issue #2558465 by Greg Boggs: Insert site content campaign autocomplete
    
mubiesam’s picture

Version: 7.x-3.x-dev » 7.x-4.4
Component: General » User interface

Upgraded to 7.4 with library installed successfully, but still have the same problem in INSERT SITE CONTENT, only the following code shown, no actual content...

[mailchimp_campaign|entity_type=node|entity_id=5|view_mode=full]

Any suggestion...highly appreciated.

samuel.mortenson’s picture

Status: Active » Closed (outdated)

Hi @mubiesam - if this is still happening for you, could you open a new issue for the 7.x-4.x or 7.x-5.x branch? Thanks!