A row key doesn't necessarily need to be numeric; for example the invite module uses a varchar(8) as a key.
However in the validation function it uses array_sum to see if there is any selected rows, which returns false in the above case.

     if (!array_sum($form_state['values']['objects'])) { // If all 0, no row selected

Attached is my solution and seems to be working, at least for the above issue. It's against v1.7 done in the vbo folder.

CommentFileSizeAuthor
#1 vbo_aray_sum.patch1.32 KBhefox

Comments

hefox’s picture

StatusFileSize
new1.32 KB

(The patch didn't attach or am I blind?)

infojunkie’s picture

Thanks. I will review why I had originally decided to use array_sum.

infojunkie’s picture

Version: 6.x-1.7 » 6.x-1.x-dev
Status: Active » Fixed

Fixed in latest dev. Please try it on your case to let me know if that works.

hefox’s picture

Tested briefly and it's working fine =).

Thank you!

Status: Fixed » Closed (fixed)

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