I'm writing a simple notification mechanism for my D7 website that allows users to subscribe to a thread and receive notifications when the thread is updated. When I tried to add a node subscription, the autocomplete field generated an Ajax error. It appears to me the autocomplete still uses the D6 function db_rewrite_sql(). Also another error "Call to undefined function notifications_node_title2nid()" appeared when I saved the subscription. I was trying to solve the problem myself but got lost in the code. Really appreciate if someone could write a patch for it.

#1 fix-node-autocomplete-1189988-2-D7.patch3.66 KBwebflo
Members fund testing for the Drupal project. Drupal Association Learn more


webflo’s picture

Title: Thread subscription not working » Node autocomplete is not working.
Component: Content subscriptions » Notifications
Status: Active » Needs review
3.66 KB

Here is a patch. Please review.

webflo’s picture

Status: Needs review » Fixed

Commit 07490b4 on 7.x-1.x

Status: Fixed » Closed (fixed)

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