when adding a record to a datatable the method changeid gets called
however, the depends and triggers attributes associated with math columns mean that the system reports an error
adding a couple of lines to the changeid method deleting the depends and triggers attributes fixes the problem (the missing attributes end up getting added back properly in math mixin)
code at line 9879
changeId: function (old, newid) {
//assert(this.pull[old],"Can't change id, for non existing item: "+old);
if (old == newid) return;
if (this.pull[old]) this.pull[newid] = this.pull[old];
this.pull[newid].id = newid;
**delete this.pull[newid].depends;**
**delete this.pull[newid].triggers;**
this.order[this.order.find(old)] = newid;
if (this._filter_order) this._filter_order[this._filter_order.find(old)] = newid;
if (this._marks[old]) {
this._marks[newid] = this._marks[old];
delete this._marks[old];
}
this.callEvent("onIdChange", [old, newid]);
if (this._render_change_id) this._render_change_id(old, newid);
delete this.pull[old];
},
bolded lines added