Skip to content

Commit 119b554

Browse files
committed
Fix drupal services to handle latest version of content type fields definitiosn from entity rest extra
1 parent c4173a4 commit 119b554

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backbone.drupal.services.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ Backbone.Drupal.Models.Node = Backbone.Drupal.Models.Base.extend({
3737
if(this.backform) {
3838
var attributes = [];
3939
_.each(data, function(element, index, list) {
40-
attributes[index] = element[0].value;
40+
if(!_.isEmpty(element[0])) {
41+
attributes[index] = element[0].value;
42+
}
4143
});
4244
return attributes;
4345
}

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"backbone.drupal.js",
55
"backbone.drupal.services.js"
66
],
7-
"version": "0.2.2-beta",
7+
"version": "0.2.3-alpha",
88
"homepage": "http://enzolutions.com/projects/backbone_drupal/",
99
"author": {
1010
"name": "enzo - Eduardo Garcia",

0 commit comments

Comments
 (0)