couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Zanona (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-1237) Allow updates req.form to accept multiple values for the same attribute (i.e multiple html options select element)
Date Fri, 29 Jul 2011 14:34:10 GMT
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

       

Mime
View raw message