support/restlet.js in ns_connector-0.0.8 vs support/restlet.js in ns_connector-0.0.9
- old
+ new
@@ -67,11 +67,9 @@
{
if(!request.data.hasOwnProperty('id')) {
argument_error('update action requires an id');
}
- return(nlapiSubmitRecord(newrec, true));
-
var diff = {};
var record = nlapiLoadRecord(request.type_id, request.data.id);
for(var field in request.data) {
if(record.getFieldValue(field) != request.data[field]) {