[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.
This commit is contained in:
Jérome Maes
2015-09-25 16:05:44 +02:00
parent 3c97dbf1e1
commit 8ffca19680
+1 -1
View File
@@ -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;