summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-01-12 19:03:54 +0200
committerLV-426 <lv-426@taproot.org.il>2015-01-12 19:03:54 +0200
commitc23f5f2d2c301589f8006e57d595b479d3f3559d (patch)
tree705a07a78e2c9123b61a5535753229193f95c8bb /src
parent573aa0e905fec9cb2886e06ef5470479d3c0b54b (diff)
util.js: fix adapt_format_read_link_ptr issue resulting from both in,out set containing the same key
Diffstat (limited to 'src')
-rw-r--r--src/client/model/util.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/model/util.js b/src/client/model/util.js
index 9c3977fc..21d7dbca 100644
--- a/src/client/model/util.js
+++ b/src/client/model/util.js
@@ -58,16 +58,10 @@ define([ 'jquery', 'model/diff' ], function($, model_diff) {
var ret;
ret = $.extend({
- '__src_id' : l_raw['__src_id'],
- '__dst_id' : l_raw['__dst_id'],
- // type:
- // - discard all but first label
- // - adjust to lowercase
- '__type' : __sanitize_label__read(l_raw['__type'][0]),
'state' : 'perm',
}, l_raw);
- ret['name'] = ret['__type'];
+ ret['name'] = __sanitize_label__read(ret['__type'][0]);
delete ret.__type;
return ret;