Fixes data saving services

This commit is contained in:
Shannon
2013-06-10 15:58:52 -02:00
parent 01c48b7dba
commit e8c4063ed1
3 changed files with 9 additions and 1 deletions

View File

@@ -664,6 +664,9 @@ function umbDataFormatter() {
var saveModel = {
id: displayModel.id,
properties: [],
name: displayModel.name,
contentTypeAlias : displayModel.contentTypeAlias,
parentId: displayModel.parentId,
//set the action on the save model
action: action
};
@@ -671,6 +674,7 @@ function umbDataFormatter() {
_.each(tab.properties, function (prop) {
saveModel.properties.push({
id: prop.id,
alias: prop.alias,
value: prop.value
});
});

View File

@@ -79,6 +79,9 @@ function umbDataFormatter() {
var saveModel = {
id: displayModel.id,
properties: [],
name: displayModel.name,
contentTypeAlias : displayModel.contentTypeAlias,
parentId: displayModel.parentId,
//set the action on the save model
action: action
};
@@ -86,6 +89,7 @@ function umbDataFormatter() {
_.each(tab.properties, function (prop) {
saveModel.properties.push({
id: prop.id,
alias: prop.alias,
value: prop.value
});
});