Please notice, this issue is not duplicated to this Error with multiple arguments in custom service module or this Cannot save multiple file or image references in node content type issue. Because this guys running into an error, me not.

I'm not sure that this is really a bug, because I don’t know how Drupal works in the background. If not please change to "Feature request" and raise the Priority to "Major".

The Problem

If You try to fill a "Text area (multiple rows)" with more than one value, the node will be created always with only the first Value and you have to run an update to every next value.
So if you have 5 values: You create first the first Value, then you run four times an update to that node and every run only one value will be added. So if you have 100 Values, you need 99 times to update. If you have more then 100, You gona to be a little creazy...

In example, You POST this JSON-File:

{
   "title":"The Title",
   "type":"node_type",
   "multiple_text_area": {
    "und": [
      {
        "value": "a"
      },
      {
        "value": "b"
      },
      {
        "value": "c"
      }
    ]
  }
}

a node will be created only with "a". So You need PUT on this URL "/computing_service/node/NODE_ID.json" in this case only two times this code:

{
   "multiple_text_area": {
    "und": [
      {
        "value": "a"
      },
      {
        "value": "b"
      },
      {
        "value": "c"
      }
    ]
  }
}

Played now a little around and found that it does not matter which data you put (update), you have only run so often, how much data you have and an last run, you have to send the right data so all data will be updated correctly.

See also: Post text field with multiplevalue

PS: also tryed with the dev-version

Comments

ka3ax created an issue. See original summary.

tyler.frankenstein’s picture

Status: Active » Closed (duplicate)
Related issues: +#2224803: Possible patch for multi-value fields