Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Download von Dokument Versionen funktioniert wegen unvollständigem Pfad nicht: File not found #15

Open
ubRudolf opened this issue Jul 12, 2023 · 0 comments

Comments

@ubRudolf
Copy link

Auf der Seite, wo nach Verlassen des Dokuments die Versionen für den Download gelistet werden, kam beim Download Versuch bei unseren Plugin Installationen stets "File not found".

Konnte es so fixen in Customizing/global/plugins/Services/Repository/RepositoryObject/OnlyOffice/templates/html/tpl.file_history.html :

function renderBody() {​​​​​​
const url_array = JSON.parse('{​​​​​​URL}​​​​​​');
const base_url = '{​​​​​​BASE_URL}​​​​​​';
const data = JSON.parse('{​​​​​​TBL_DATA}​​​​​​');
let table = "";
let limit = Math.min(data.length, {​​​​​​LIMIT}​​​​​​)
for (let i = 0; i < limit ; i++) {​​​​​​
var rowData = data[i];
var version = rowData.version;
alt: var url = url_array[version];
neu: var url = base_url + url_array[version];
....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant