MultiSelectWidget can't be empty if AJAX is active.

JoseLuis de la Rosa Triviño <joseluis.rosa-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <767B5B40A4305B49869025D4BDFB34A6ED0A2C@buzon.iavantefundacion.com>
Hello,

 

I have problems with a MultiSelect Widget in edit mode, when no item is selected, clicking "Save Changes" returns the message "Invalid multiple selection". The fact is that what cpsdocument_edit_render receives is [''] instead of [], the vocabulary used has no key like the empty string and the widget does not validates.

I think this bug is due to the serialization done in cpsdocument.js in the "sendForm" function, but I'm not sure. 

 

Should sendForm serialize only those fields that are not empty? Do you have some idea for this?

 

Thank you very much.

 

JoseLuis de la Rosa Triviño 
Técnico de Desarrollo Software 
FUNDACIÓN IAVANTE 
joseluis.rosa-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org 
Tel. 951 015 300 

 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.

This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.