Scaffold: Print attachment URLs
Useful for debugging. This doesn't apply to tests.
This commit is contained in:
parent
ff96de8723
commit
bef7ecd409
1 changed files with 2 additions and 2 deletions
|
@ -1159,10 +1159,10 @@ var Scaffold = new function () {
|
||||||
if (Array.isArray(item.attachments)) {
|
if (Array.isArray(item.attachments)) {
|
||||||
for (let attachment of item.attachments) {
|
for (let attachment of item.attachments) {
|
||||||
if (attachment.document) {
|
if (attachment.document) {
|
||||||
attachment.document = '[object Document]';
|
|
||||||
attachment.mimeType = 'text/html';
|
attachment.mimeType = 'text/html';
|
||||||
|
attachment.url = attachment.document.location?.href;
|
||||||
|
delete attachment.document;
|
||||||
}
|
}
|
||||||
delete attachment.url;
|
|
||||||
delete attachment.complete;
|
delete attachment.complete;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue