Closed (fixed)
Project:
FAQ_Ask
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Apr 2009 at 16:08 UTC
Updated:
17 Jun 2010 at 10:20 UTC
Jump to comment: Most recent file
On the normal /faq page on my site I had added the block for faq_ask and now whenever I go there to see a list of all FAQs, instead I only get the faq_ask form.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | faq.module.rej_.txt | 4.53 KB | jon_stewart |
| #8 | faq.module-6.2v2.patch | 3.95 KB | stenjo |
| #7 | faq.module-6.2.patch | 6.56 KB | stenjo |
| #6 | faq.module-6.2-patch.txt | 3.23 KB | stenjo |
Comments
Comment #1
kuzma commentedbump
Comment #2
heyyo commentedSame issue here...
Comment #3
heyyo commentedfunction faq_ask_block($op = 'list', $delta = 0, $edit = array()) {
...
case 'view':
switch ($delta) {
...
case 1:
// Ask a question block.
$block['content'] = faq_ask_page(NULL);
break;
...
function faq_ask_page($tid = NULL) {
drupal_goto('node/add/faq', 'ask=true');
}
Comment #4
nancydruSee #437408: Redirect Loop for a workaround.
Comment #5
heyyo commentedThis thread is not a duplicate ! But the the first thread talking about the Redirect problem with FAQ Ask block !
So my question is
Is Faq Ask Block abandonned ?
Comment #6
stenjo commentedI have created a patch that adds a FAQ Ask block that actually works for me.
Please test carefully.
Comment #7
stenjo commentedHey, found out that the taxonomy was not properly handled in the block form. Fixed now + added the change from Sean Corrales on form redirect and changed from hook_form_alter() to hook_form_FORM_ID_alter(). No point in using a general hook and then do the same ting as a more spescialised hook does.
Again, test carefully and do not apply to live site without thorough testing.
By the way, I have spent quite some time writing a SimpleTest testscript for both the FAQ module and the FAQ-Ask module. I'll post those here when I have found out how to test a form in a block properly.
/Sten
Comment #8
stenjo commentedHow difficult this should be. Too many parameters in function
faq_form_faq_node_form_alter(). Corrected. Now things should go better...Comment #9
rblackhawke commentedI'm getting the following when trying to apply patch:
Hunk #1 FAILED at 158.
Hunk #2 FAILED at 186.
Hunk #3 FAILED at 260.
Hunk #4 FAILED at 923.
Hunk #5 FAILED at 940.
5 out of 5 hunks FAILED -- saving rejects to file faq_ask.module.rej
Comment #10
stenjo commentedThat message did not make mutch sense to me I'm afraid. Would you care to upload the file faq_ask.module.rej here or send it to me?
Comment #11
stenjo commentedThis patch needs review rather than to be ported. Status of this issue is changed.
Comment #12
jon_stewart commentedSubscribing!
Excellent module.
Jon
Comment #13
jon_stewart commentedHere's the reject file
It would be funny if we were patching the wrong file! :-)
EDIT: ROFL...which turned out to be true!
Informal testing seems to indicate this is working. hopefully I'll get time to test later.
Comment #14
stenjo commentedThis is now fixed in the 2.x-dev version