At first: wonderful Module !! Nearly exact what I was looking for.

The problem: if you use key-value pairs in options like:
1|yes
2|no
the results are wrong (I think your class-function does not recognise the names names).
With only the value, your module returns the correct link:
yes
no
Any way to add this to your code - or make a comment for other users to not use key-value-pairs ?

Thank you - greetings from Hamburg

CommentFileSizeAuthor
#3 keyvalue.patch4.44 KBtis

Comments

syturvy’s picture

I get exactly the same error. I use keys to avoid storing too much data, but this way the module never recognizes the answer and fails to assign points.

I was hoping to fix this myself with a small path, but I'm getting a little lost in the module code. (My Hungarian is not that good.)

@TIS: Can you give any hint about what parts of the code should be changed?

tis’s picture

Status: Active » Fixed
Issue tags: +keyvalue

I've made some modifications. Now I'm testing it. I'll upload new version soon.

tis’s picture

Status: Fixed » Closed (fixed)
StatusFileSize
new4.44 KB

Here is the patch file.