Is there any way to avoid this and have it go to the forum's view page?
Can I somehow make forums be excluded from the product module?
I've tried nodegoto but it doesn't make a difference. It doesn't do it to roles that don't have access to products, but I would like it to not do it for the administrator as well because it confuses them.
cheers
alynner
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | subproducts.module-HEAD.patch | 350 bytes | darren oh |
| #11 | subproducts.module.patch | 368 bytes | advosuzi |
| #9 | subproduct.patch.txt | 0 bytes | wpd |
| #7 | subproducts.module | 73.19 KB | wpd |
Comments
Comment #1
simeextremely confusing question - forums?
Please reopen if this is still an issue and we'll go through it.
Comment #2
alynner commentedyes, it is still a problem and I'll try to explain better!
I am using the subproducts module, so after I add a product it takes me to www.mydomain.com/node/nid/subproducts/generate which is fine. The problem is, that when I submit a FORUM, is also takes me to www.mydomain.com/node/nid/subproducts/generate, but I don't want subproducts of a forum.
Is there a setting for subproducts somewhere that only attaches it to actual products and not forums, pages, etc.?
thanks!
alynner
Comment #3
alt_paul commentedI'm having a similar issue. Whenever I make a node of any kind(non-product), and after creating the node, it sends me to the sub-products category. Obviously I don't want that, I want it to send me to the normal place it should go, node specific. If you go to admin/settings/content types, and then configure any node, I have at the top of the node configuration apparell and shippable. That isn't something I want associated with my non-product nodes. It seems like one of the modules, I'm guessing subproducts, is blanketing it's configs on all nodes, not just products nodes.
Comment #4
Anonymous (not verified) commented+1 Same problem here
Comment #5
wpd commentedThis is the same bug as here:
http://drupal.org/node/83670
Comment #6
Anonymous (not verified) commentedI'm not by any means a programmer but, I'm gonna assume that this is the area that is causing the redirect.
Of course, I don't know if this is the area that is causing the redirect on all nodes, but maybe its a start. Again, I'm not a developer so bare with me.
Comment #7
wpd commentedThis patch fixes it for me. I can still correctly create subproducts (i.e. apparel), but I do not get redirected to the home pages after I create every other node type.
The patch only changes one line (222):
Comment #8
neclimdulplease read this http://drupal.org/diffandpatch
We aren't going to read over an entire module to review changes. Especially for one line, you're just wasting storage.
Comment #9
wpd commentedMy apologies. I uploaded the wrong file! Here is the patch file.
Comment #10
advosuzi commented+1 for this bug.
i tried applying the above change
&& isset($node->ptype)change to both lines 222 and 502 and it did not fix the issue.Comment #11
advosuzi commentedThis patch fixed the problem for me
Comment #12
simeseems so simple. can someone else confirm advosuzi's patch and I'll apply
Comment #13
darren ohIt works.
Comment #14
darren ohThis bug occurs because for some reason $node->ptype is set to 0000. I'm attaching a patch that checks whether ptype is empty instead of whether it is set. A bug somewhere else must be setting the product type.
Comment #15
nedjoProbably we should apply this patch as an interim measure (I'll do so unless I hear objections), but it is clearly a workaround that leaves the real problem unaddressed. The problem is that somewhere in the code we're getting an incorrect value set for $node->ptype. The challenge is to find where.
Comment #16
gordon commentedThanks, commited to CVS.
see http://drupal.org/cvs?commit=45708 and http://drupal.org/cvs?commit=45707
Comment #17
(not verified) commented