Skip to content
Snippets Groups Projects
Commit 3c4a769b authored by degygii's avatar degygii
Browse files

fixed issues with _id and id

parent 50dfb936
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
} }
if (changed) { if (changed) {
amivcore.groups.PATCH({ amivcore.groups.PATCH({
id: curUserData.id, id: curUserData._id,
header: { header: {
'If-Match': $('.groups-edit-cont').attr('data-etag') 'If-Match': $('.groups-edit-cont').attr('data-etag')
}, },
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
id: $(this).attr('data-id') id: $(this).attr('data-id')
}, function(ret) { }, function(ret) {
curUserData = ret; curUserData = ret;
var tmp = '<table class="table table-hover users-user-edit-table" data-etag="' + ret['_etag'] + '" data-id="' + ret.id + '"><tbody>'; var tmp = '<table class="table table-hover users-user-edit-table" data-etag="' + ret['_etag'] + '" data-id="' + ret._id + '"><tbody>';
for (var cur in ret) for (var cur in ret)
if (cur.charAt(0) != '_') if (cur.charAt(0) != '_')
tmp += '<tr><td>' + cur + '</td><td contenteditable>' + ret[cur] + '</td></tr>' tmp += '<tr><td>' + cur + '</td><td contenteditable>' + ret[cur] + '</td></tr>'
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
} }
if (changed) { if (changed) {
amivcore.users.PATCH({ amivcore.users.PATCH({
id: curUserData.id, id: curUserData._id,
header: { header: {
'If-Match': $('.users-user-edit-table').attr('data-etag') 'If-Match': $('.users-user-edit-table').attr('data-etag')
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment