You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Marcos Zanona (JIRA)" <ji...@apache.org> on 2011/07/29 16:34:10 UTC

[jira] [Created] (COUCHDB-1237) Allow updates req.form to accept multiple values for the same attribute (i.e multiple html options select element)

Allow updates req.form to accept multiple values for the same attribute (i.e multiple html options select element)
------------------------------------------------------------------------------------------------------------------

                 Key: COUCHDB-1237
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1237
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 1.1
            Reporter: Marcos Zanona
            Priority: Minor


Hello, it seems when sending a request containing more than one result for the same attribute, only one is caught by req.form.

"body":"fn_1=&fn_0=&org=sdsd&title=&tel=&email=&url=&adr_street=&adr_city=&adr_zip=&adr_country=¬e=&categories=Advisory+Board&categories=Secretariat&categories=Partner",
    "peer":"127.0.0.1",
    "form":{
        "org":"sdsd",
        "categories":"Partner",
        "kind":"org"
    },

as you can see categories has 3 different values `categories=Advisory+Board&categories=Secretariat&categories=Partner` but only the last one prevails. It is easy to understand why this happens, but it would be very helpful to perhaps generate and array with all the values when this happens.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira