There needs to be a way to delete custom subscriptions. I'll try to take care of this if and when I get some free time, but it might not be for a few days.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | notifications_custom_patch1.txt | 822 bytes | stmind |
| #3 | notifications_extra-514082-3.patch | 830 bytes | danepowell |
Comments
Comment #1
roball commented+1
Just like the "Add subscription for selected users" Update option on admin/user/user, there should also be something like "Remove subscription for selected users".
Comment #2
danepowell commentedIf it wasn't clear by now, I in fact do not have the time to take care of this, so don't wait on me :)
Comment #3
danepowell commentedActually, the code for this already seems to exist or was added since this issue was created. There was just a conditional keeping it from showing up in the UI. I can't tell what the purpose of the conditional was, so I removed it. If no one objects to this, I'll commit the changes in a few days/weeks.
Comment #4
roball commentedPatch works - now at admin/messaging/customsubs/csid/[CSID]/edit there is also a [ Delete ] button (in addition to the buttons [ Save ] and [ Reset to defaults ]).
However, the [ Delete ] and [ Reset to defaults ] buttons also appear at admin/messaging/customsubs/new, where only the [ Save ] button should be.
Comment #5
stmind commentedHi,
The actual problem was just that the logic of the conditional Dane mentioned was reversed. The "Delete" button was showing on the "new" form, and the "Reset to defaults" was showing on the "edit" form. Reversing the if/else block solves the problem and subscriptions can be deleted.
Updated patch attached. Would appreciate someone's test.
Comment #6
eft commentedthis patch worked for me - thanks
Comment #7
danepowell commentedComment #8
roball commentedCan confirm that Notifications Add-ons 6.x-2.x-dev (2010-Feb-02) works fine on this.
At admin/messaging/customsubs/csid/[CSID]/edit there are now the buttons [ Save ] and [ Delete ], and at admin/messaging/customsubs/new there are the buttons [ Save ] and [ Reset to defaults ].
Thanks for fixing this!