Skip to content

Commit

Permalink
Fix drupal services to handle latest version of content type fields d…
Browse files Browse the repository at this point in the history
…efinitiosn from entity rest extra
  • Loading branch information
enzolutions committed Mar 5, 2015
1 parent c4173a4 commit 119b554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backbone.drupal.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Backbone.Drupal.Models.Node = Backbone.Drupal.Models.Base.extend({
if(this.backform) {
var attributes = [];
_.each(data, function(element, index, list) {
attributes[index] = element[0].value;
if(!_.isEmpty(element[0])) {
attributes[index] = element[0].value;
}
});
return attributes;
}
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"backbone.drupal.js",
"backbone.drupal.services.js"
],
"version": "0.2.2-beta",
"version": "0.2.3-alpha",
"homepage": "http://enzolutions.com/projects/backbone_drupal/",
"author": {
"name": "enzo - Eduardo Garcia",
Expand Down

0 comments on commit 119b554

Please sign in to comment.