1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Fix datafilecontrol save

This commit is contained in:
Markus Grigull 2015-10-28 06:36:42 -04:00
parent 32aa113d9e
commit 26809ecb3e

View file

@ -64,7 +64,7 @@ export default DS.RESTSerializer.extend({
serializeIntoHash: function(hash, typeClass, snapshot, options) {
hash.contextElements = [
{
id: snapshot.id,
id: 'DataFileControl',
type: 'DataFileControl',
isPattern: false,
attributes: []
@ -72,6 +72,8 @@ export default DS.RESTSerializer.extend({
];
hash.updateAction = "APPEND";
console.log(hash);
for (var name in snapshot._attributes) {
hash.contextElements[0].attributes.push({
name: name,