Send the timestamps when executing a button action

review6111002
This commit is contained in:
Nicolas Évrard committed 2015-03-13 16:42:55 +01:00
1 parent c0d7410675
commit 5ea18e2c19
1 file changed
+7 -1
+7 -1
View File
@@ -1203,10 +1203,16 @@
return;
}
var context = jQuery.extend(this.context);
context._timestamp = {};
for (i = 0; i < selected_records.length; i++) {
record = selected_records[i];
jQuery.extend(context, record.get_timestamp());
}
// TODO confirm
this.current_record.save().done(function() {
this.current_record.model.execute(attributes.name,
[ids], this.context).then(process_action.bind(this))
[ids], context).then(process_action.bind(this))
.then(reload_ids);
}.bind(this));
}.bind(this));