diff --git a/htdocs/frontend/javascripts/entity.js b/htdocs/frontend/javascripts/entity.js index 0d1578a..a2dcbd5 100644 --- a/htdocs/frontend/javascripts/entity.js +++ b/htdocs/frontend/javascripts/entity.js @@ -42,6 +42,7 @@ Entity.prototype.parseJSON = function(json) { if (this.children) { for (var i = 0; i < this.children.length; i++) { + this.children[i].middleware = this.middleware; // children inherit parent middleware this.children[i] = new Entity(this.children[i]); }