Closed (fixed)
Project:
Subscriptions
Version:
5.x-2.0-beta10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2008 at 18:44 UTC
Updated:
16 Feb 2008 at 02:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
salvisIt should say "Your subscription was deactivated." Does it?
It works just fine for me. What kind of vocabulary is this? Please create a small plain vocabulary and try it with that one.
Comment #2
JStuckman commentedIt doesn't say anything on the screen -- the form just reverts back to how it was.
I did some debugging of the form. The code that's failing is here:
There is never a form element that has a "send_interval" property inside the "defaults" property, so no form elements get processed...
I'm not sure what kind of "small plain vocabulary" you want me to make; I can unsubscribe from a restricted category group and a non-restricted vocabulary, and it fails for both.
Comment #3
gustav commentedI can confirm this: the form simply doesn't save anything. No matter what changes one makes to the tickboxes, after pressing on Save it reverts back to the previous state.
Comment #4
JStuckman commentedMore debugging:
$form_values[0] contains the POST data that you want to process, but $form_values[0]['defaults'] is an empty array.
I'm not sure why this would happen, because I don't have experience in coding Drupal forms.
Comment #5
salvisLet's not talk about debugging at this point. I'd be happy to just reproduce the problem.
I go to user/1/subscriptions/taxa, where I have a forum vocabulary. I have all controls enabled, i.e. I have three checkboxes and a drop-down select control per row. I can activate and deactivate any of the checkboxes, and if I change the left-most ones (and click [Save], of course), then I get the appropriate "Your subscription was de/activated." messages.
Can you try this set-up? Or describe me yours?
Comment #6
JStuckman commentedSome more information:
When only one simple vocabulary is enabled for subscriptions, everything works.
When two simple vocabularies are enabled, the UI lets me unsubscribe terms in the second vocabulary (the one on the bottom) but not the first (the one on the top).
This was easy to reproduce. Just create two simple vocabularies, with the default settings. Enable them for subscriptions and disable the others.
Comment #7
salvisThis has helped, thanks.
Please try this patch. It'll probably have some offsets, because I've made other changes in the meantime, but I hope you can still get it to apply.
Comment #8
JStuckman commentedThis patch fixes the problem.
(I'm not sure how easy it is to apply -- I edited the code by hand instead of running the patch program. But the code changes work.)
Comment #9
salvisThanks! This fixed two serious bugs — it'll be in the next BETA of course.
Comment #10
salvisComment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.