more than 1 block / An illegal choice has been detected

iko - January 21, 2009 - 10:32
Project:Autocomplete Node Finder
Version:6.x-2.19
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

I am very interested in your module which makes exactly what I need. But I met several problems.

Using the 2.16 release : the first block works perfectly ; the second (and third, ...) doesn't. The select list is OK, but when I click one value, the result page displays : "your keyword yielded no result". (There must be at least one result because the value does exist)...

Using the 2.9 release : the first block works but the result page is "un-themed" (a raw HTML page). The second (and third, ...) block leads to an error message : "An illegal choice has been detected. Please contact the site administrator." (the searched value is still selected from a list of all existing values)

Feature request at least ! supporting date fields would be so great ! :-)

Thanks a lot for this module,
Marie-Hélène

#1

danielb - January 21, 2009 - 23:06

Stick with the 2.19, and we'll work through the bugs there. Not sure I've ever tried to create multiple blocks - only multiple forms in one block. I will give it a go tonight.

#2

iko - January 22, 2009 - 10:17

Multiple forms in one block ? how is it possible ? In the Autocomplete Node Finder settings I can just set the number of blocks to create and then, in the Blocks page, I configure the finder form - but I have only one ! What did I miss ?

Thanks...

#3

danielb - January 22, 2009 - 23:22

Well you create multiple blocks, but only enable one of them. Then in the config for the enabled block you can 'append' the other blocks.
It is not very user friendly, was not originally a feature of the module, and another reason I am rewriting the module.

There will only be one set of results which will be filtered by all the forms.

#4

danielb - January 26, 2009 - 02:38

OK I'm working on this now, investigation into it has uncovered a few problems here :(

#5

iko - January 26, 2009 - 14:20

Oh, I'm sorry for the additional work :-) but it will improve your module !

I could'nt understand where in the enabled-block's config I could "'append' the other blocks". As a matter of fact, I don't need it right now if it yields "one set of results which will be filtered by all the forms" : I need distinct results filtered by distinct forms. But it might be useful for my project to combine several search specification. If your module is able to do it, that could interest me. When you have five minutes, could you give me the tip (or the way to find it) ?

Thanks for your work !

#6

iko - January 26, 2009 - 14:46

OK ; I just tested the 2.18 release and saw the "append finder forms" group. Actually, it isn't what I need for the time.

(by the way, there seems to be a problem with the "append finder forms" function in 2.18 release : the appending (correct word??) is not saved). OK, you told me to stick with 2.9 : I go back to 2.9 and wait for your patch !

#7

danielb - January 31, 2009 - 00:27
Status:active» fixed

no no i meant 2.16.. but now it is 2.19 :P Go with 2.19
Two blocks on one page definitly works in that.

#8

iko - February 2, 2009 - 15:57
Version:6.x-2.9» 6.x-2.19

works fine ! there is a "double field" in created block until it's configured but then, everything's all right. tested with 5 blocks : it's OK.
great job ! thank you !

now two suggestions for improvement :
- enhance process of creating blocks : once first group of blocks created, a "plus N" or "create N new blocks" button ; maybe a "ACNF blocks manager" for easy creating/configuring/deleting blocks ? (just suggestions..)
- support of date fields :-)

that's a fine module anyway : congratulations !

#9

System Message - February 16, 2009 - 16:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.