Ask to save modified record before execute action
issue9880 review318921005
This commit is contained in:
1 parent
1ca1c35fc8
commit
32bf70a424
1 file changed
+1
-5
+1
-5
@@ -640,11 +640,7 @@
|
||||
}).text(action.name))
|
||||
.click(function(evt) {
|
||||
evt.preventDefault();
|
||||
var prm = jQuery.when();
|
||||
if (this.screen.modified()) {
|
||||
prm = this.save();
|
||||
}
|
||||
prm.then(function() {
|
||||
this.modified_save().then(function() {
|
||||
var exec_action = jQuery.extend({}, action);
|
||||
var record_id = null;
|
||||
if (screen.current_record) {
|
||||
|
||||
Reference in new issue
Block a user