Hi,

I get this message in this very interesting module :

warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /.../sites/all/modules/betterselect/betterselect.module on line 49.

Context : I use cck integer fields with select like this :
1|toto
2|titi
...

Any idea about this issue ?

Thank you

CommentFileSizeAuthor
#5 Untitled-1.png85.56 KBivrh

Comments

webchick’s picture

Priority: Normal » Critical

Hm. Yeah, this is tricky. Will need to introduce some more logic into betterselect_process().

I'd like to see this fixed.

dberzon’s picture

I have the same problem.....

setvik’s picture

I haven't seen this issue yet. Can someone provide specific steps to reproduce the behavior?

setvik’s picture

Status: Active » Postponed (maintainer needs more info)
ivrh’s picture

StatusFileSize
new85.56 KB

Simply adding content that contains CCK field with better select widget causes this issue. If you need to know more - give me some detailed instructions of what you want me to do to cause/avoid the issue.
Attached is the screenshot from the Watchdog Log

hnln’s picture

Yep, this happens to me too when I open a form which has some options selected (if nothing is selected yet, the error doesn't occur). Also the selected options don't show (unless I disable the module they show correctly in a standard multi select).

HnLn

setvik’s picture

Status: Postponed (maintainer needs more info) » Fixed

fixed in 1.0-beta1 release

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

jfha73’s picture

How did you guys fix this?

A bunch of people (including me) are having the same problem with the DefaultEntityController

If you can give us a hand, it would be great.

You can see it here:

http://drupal.org/node/1559520

And here

http://drupal.org/node/1559516