Nuxeo mailing list archives
[CPS-devel] MultiSelectWidget can't be empty if AJAX is active.
JoseLuis de la Rosa Triviño
joseluis.rosa at iavantefundacion.com
Fri Nov 17 12:35:39 CET 2006
I'm on 3.4.2 (CPSDocument 0.45.2 and CPSDefault 3.45.2). But you are right, I have just tested it on the CPS trunk and it is solved.
Just out of curiosity, what was the solution?
Thank you very much.
JoseLuis de la Rosa Triviño
Técnico de Desarrollo Software
FUNDACIÓN IAVANTE
joseluis.rosa at iavantefundacion.com
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.
-----Mensaje original-----
De: Georges Racinet [mailto:gracinet at nuxeo.com]
Enviado el: miércoles, 15 de noviembre de 2006 17:49
Para: JoseLuis de la Rosa Triviño
CC: NUXEO
Asunto: Re: [CPS-devel] MultiSelectWidget can't be empty if AJAX is active.
On Nov 15, 2006, at 5:21 PM, JoseLuis de la Rosa Triviño wrote:
> 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?
There have been changes recently on this. What version are you on ?
>
> Thank you very much.
>
>
> JoseLuis de la Rosa Triviño
> Técnico de Desarrollo Software
> FUNDACIÓN IAVANTE
> joseluis.rosa at iavantefundacion.com
> 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
---------
Georges Racinet, Nuxeo SAS
Open Source Enterprise Content Management (ECM)
Web: http://www.nuxeo.com/ and http://www.nuxeo.org/ - Tel: +33 1 40
33 79 87
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.