Closed (duplicate)
Project:
Notifications
Version:
6.x-4.0-beta7
Component:
Custom subscriptions
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2011 at 16:31 UTC
Updated:
23 Sep 2012 at 16:41 UTC
@ admin/user/user, there is an Update option to "Add subscription for selected users". When trying to use it, the message "0 users have been subscribed" will present, regardless of the number of unsubscribed users that are chosen.
notifications_custom.module's hook_user_operations() callback is 'notifications_custom_user_multiple_subscribe'. This function passes each of the $uids to notifications_custom_get_subscription() to determine if a subscription already exists for the user. However, notifications_custom_get_subscription() expects a user object to be sent rather than just a uid.
Comments
Comment #1
Skidz commentedI have the same issue. When I first used the bulk subscription feature, I was able to subscribe the first 50 users in the list (selected all users checkbox), and then when I moved to the second page and did the same, I got the '0 users have been subscribed' message. The module isn't throwing any errors. Now if I try subscribing any number of users from the users page using filters, be it a single user or multiple users, I get the same result.
Comment #2
nicktr commentedThe patch on this page fixes this issue.
http://drupal.org/node/1099530
Comment #3
roball commentedOK, so this issue is a duplicate of #1099530: "0 users have been subscribed." on users Update option "Add subscription for selected users".