Hi you all.
I've discovered that module searching a solution for building an online dictionary. I got a node type for the words, title for one language, two CCK fields for another two translations. Having a search box works smoothly, then I tried to append two search boxes on the same block, one for each language (you can see it at http://nol.innodus.com). The problem is that I can use the second box with any problem but it doesn't matter what I write on the first one it always "yields no results" message.
I've had a look at the code. I've found the form_validation function on line 822, so I've commented it to see what happens. Then it works improperly printing on screen the "There are no results to display." message on line 1202. Well, here looks as if the validation complained because no value is passed from the first box. Any idea?
On some other threads someone complained that maybe it has no so much sense to append two filters on a single block, I think that if you see that example it really does. Well, it could be a fancy feature to be able to seek two different CCK fields with one single box (or more), but at least appending looks right, if it would work :-)
Comments
Comment #1
danielb commentedYeah it's possible there are bugs, it's been a long time since a drupal 5 issue popped up for this module, I'll test out that situation.
Possibly the validation option in the block? Not sure, I will check it out soon.
Comment #2
jorditr commentedHi Daniel,
thanks for your answer. I would say that the validation is resposible of that message, since it's the answer I get, you can see it also on the live site. Have you verifited that the drupal 6 versions has the same problem. I compared both validation and submit functions on the drupal5 and drupal6 versions of your module and they don't look too different... :-)
Thanks!
Comment #3
danielb commentedI believe I have found the problem, it was in the autocomplete_node_finder_process_form_values function - I will release a new version of this module with the fix...
Comment #4
jorditr commentedThanks, I'll check as soon as you release it :-)
Comment #5
jorditr commentedHi, I've seen that the drupal 5 version (new 5.x-3.9, dated 7th feb) is not correct, it is not a drupal 5 but a drupal 6 code. Beware because it will confuse drupal 5 users downloading it, I not completely sure but almost... In fact, it is outputting an alert:
warning: Missing argument 2 for autocomplete_node_finder_block_form() in /var/www/vhosts/innodus.com/subdomains/nol/httpdocs/modules/CONTRIBUTED/autocomplete_node_finder/autocomplete_node_finder.module on line 769.In any case I could not test it but I've tried to see if the mentioned autocomplete_node_finder_process_form_values function was different on the new release and it doesn't show any difference except that it accepts as argument "$form_state" and not "$form_values", but I think this is a general different approach on your drupal 6 version regarding the drupal 5 one.
Comment #6
danielb commentedI have downloaded it and I don't have any problems :/
Comment #7
jorditr commentedUhmm, well, it's true it works properly, thanks a lot!
(I can't understand how could I be wrong... anyway.)
Comment #8
danielb commentedSo are we good? I hope so.