Commit 97565f1a authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

builder.js changed name of parameter parent to field_parent

parent aa4da828
......@@ -268,17 +268,17 @@ Builder.prototype = {
self.m.analysisHasChanged = true
},
update_model_data(fieldName, value, parent) {
if(typeof parent != 'undefined')
this.m[parent][fieldName]= value;
update_model_data(fieldName, value, field_parent) {
if(typeof field_parent != 'undefined')
this.m[field_parent][fieldName]= value;
else
this.m[fieldName] = value;
this.post_save(this);
},
update_model_sample_data(fieldName, value, parent) {
if(typeof parent != 'undefined')
this.m[parent][fieldName][this.m.t]= value;
update_model_sample_data(fieldName, value, field_parent) {
if(typeof field_parent != 'undefined')
this.m[field_parent][fieldName][this.m.t]= value;
else
this.m[fieldName][this.m.t] = value;
this.post_save(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment