(js) Fix links to members after editing list

This commit is contained in:
Francis Lachapelle
2016-08-30 12:59:13 -04:00
parent c31230ce19
commit 7572098f01
@@ -209,7 +209,12 @@
var _this = this,
action = 'saveAsContact';
if (this.c_component == 'vlist') action = 'saveAsList';
if (this.c_component == 'vlist') {
action = 'saveAsList';
_.forEach(this.refs, function(ref) {
ref.reference = ref.id;
});
}
return Card.$$resource.save([this.pid, this.id || '_new_'].join('/'),
this.$omit(),