Skip to content

Commit 3c0ac1b

Browse files
nicoeJCavallo
authored andcommitted
[merge 7.6] Remove merge markers left from rebase
1 parent 2d5b422 commit 3c0ac1b

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

sao/src/tab.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -971,10 +971,10 @@
971971
});
972972
},
973973
modified_save: function() {
974-
<<<<<<< HEAD
975974
return this.screen.save_tree_state().then(() => {
976975
this.screen.current_view.set_value();
977976
if (this.screen.modified()) {
977+
this.show();
978978
return Sao.common.sur_3b.run(
979979
Sao.i18n.gettext('This record has been modified\n' +
980980
'do you want to save it?'))
@@ -986,24 +986,6 @@
986986
var record_id = null;
987987
if (this.screen.current_record) {
988988
record_id = this.screen.current_record.id;
989-
=======
990-
this.screen.save_tree_state();
991-
this.screen.current_view.set_value();
992-
if (this.screen.modified()) {
993-
this.show();
994-
return Sao.common.sur_3b.run(
995-
Sao.i18n.gettext('This record has been modified\n' +
996-
'do you want to save it?'))
997-
.then(result => {
998-
switch(result) {
999-
case 'ok':
1000-
return this.save();
1001-
case 'ko':
1002-
var record_id = this.screen.current_record.id;
1003-
return this.reload(false).then(() => {
1004-
if (record_id < 0) {
1005-
return jQuery.Deferred().reject(true);
1006-
>>>>>>> d873a9f1ba (Add tab management menu and shortcuts (#473))
1007989
}
1008990
return this.reload(false).then(() => {
1009991
if (record_id !== null) {

0 commit comments

Comments
 (0)