Skip to content

Commit

Permalink
Merge pull request #2896 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
[DE] Fix downloading pdf forms
  • Loading branch information
JuliaRadzhabova authored Mar 25, 2024
2 parents 4ee91c3 + 2d81bfa commit 7556504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/documenteditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ define([

render: function() {
if (/^pdf$/.test(this.fileType)) {
this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf
!(this.mode && this.mode.isPDFForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf
this.formats[1].splice(2, 1); // remove pdfa
} else if (/^xps|oxps$/.test(this.fileType)) {
this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: ''}); // original xps/oxps
Expand Down Expand Up @@ -235,7 +235,7 @@ define([

render: function() {
if (/^pdf$/.test(this.fileType)) {
this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf
!(this.mode && this.mode.isPDFForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf
this.formats[1].splice(2, 1); // remove pdfa
} else if (/^xps|oxps$/.test(this.fileType)) {
this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: '', ext: true}); // original xps/oxps
Expand Down

0 comments on commit 7556504

Please sign in to comment.