Use saveJSON instead of full JSON to avoid expansion of pointers.
This commit is contained in:
@@ -56,7 +56,7 @@ var getResponseObject = function(request, resolve, reject) {
|
|||||||
success: function() {
|
success: function() {
|
||||||
var response = {};
|
var response = {};
|
||||||
if (request.triggerName === Types.beforeSave) {
|
if (request.triggerName === Types.beforeSave) {
|
||||||
response['object'] = request.object.toJSON();
|
response['object'] = request.object._getSaveJSON();
|
||||||
}
|
}
|
||||||
return resolve(response);
|
return resolve(response);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user