signalpoint / DrupalGap

An application development kit for Drupal websites.
https://www.drupalgap.org
GNU General Public License v2.0
232 stars 185 forks source link

multi value field & node save #991

Open sangasgar opened 6 years ago

sangasgar commented 6 years ago

I having an issue node_save when use unlimited select field type on custom form

{"nid":"","title":"dsdsd","type":"mobilnoeobiavlenie","language":"und","field_adress1":{"und":[{"value":""}]},"field_plochad":{"und":[{"value":""}]},"field_opisanie":{"und":[{"value":""}]},"field_imagephoto":{"und":[{"fid":""},{"fid":""},{"fid":""},{"fid":""},{"fid":""}]},"field_cena7":{"und":[{"value":""}]},"field_thelephone":{"und":[{"value":""}]},"field_tip_obiavlenia1":{"und":{"value":["Sdaetsa","Prodaetsa"]}}}
jdrupal-7.0.5.min.js:2:1765
POST: https://arendapl.ru/?q=drupalgap/node.json - 406 - Not Acceptable : Сделан недоп���им�й в�бо�. �ожал�й��а, об�а�и�е�� к админи���а�о�� �ай�а.
jdrupal-7.0.5.min.js:2:547
{"form_errors":{"field_tip_obiavlenia1][und":"\u0421\u0434\u0435\u043b\u0430\u043d \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0432\u044b\u0431\u043e\u0440. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0441\u0430\u0439\u0442\u0430."}}
jdrupal-7.0.5.min.js:2:631
Cache-Control: no-cache, must-revalidate

Connection: keep-alive

Content-Language: ru

Content-Type: application/json

Date: Tue, 05 Dec 2017 00:08:20 GMT

Expires: Sun, 19 Nov 1978 05:00:00 GMT

Server: nginx/1.12.0

Transfer-Encoding: chunked

X-Content-Type-Options: nosniff

X-Powered-By: PHP/7.0.25

jdrupa
signalpoint commented 6 years ago

See here: https://www.drupal.org/project/services/issues/2224803

sangasgar commented 6 years ago

I use this patch

sangasgar commented 6 years ago

I use this patch, but the patch does not work for me.