Skip to content
Snippets Groups Projects
Commit 8ffca196 authored by Jérome Maes's avatar Jérome Maes
Browse files

[FIX] web : attachment controller got unexpected args

On webclient, on 'Attachment(s)' dropdown (form view) when clicking on an attachment to download it, a request is sent to /web/content/ with a param 't' containing the current date. This param wasn't used neither before the new controller, but the old one accept additional kwargs. The new controller crashes, and since the t parameter is not used, removing it seems better.
parent 3c97dbf1
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ var Sidebar = Widget.extend({
_.each(attachments,function(a) {
a.label = a.name;
if(a.type === "binary") {
a.url = '/web/content/' + a.id + '?download=true&t=' + (new Date().getTime());
a.url = '/web/content/' + a.id + '?download=true';
}
});
this.items.files = attachments;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment