When adding archive links to a case, make them all permanent, not just the first one
This commit is contained in:
parent
b8077e59a4
commit
cbc4f1bfdc
1 changed files with 4 additions and 3 deletions
|
@ -165,10 +165,11 @@ export class CasesPlugin extends ZeppelinPlugin<ICasesPluginConfig> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const archiveLinkMatch = body && body.match(/\/archives\/([a-zA-Z0-9\-]+)/);
|
const archiveLinkMatch = body && body.match(/(?<=\/archives\/)[a-zA-Z0-9\-]+/g);
|
||||||
if (archiveLinkMatch) {
|
if (archiveLinkMatch) {
|
||||||
const archiveId = archiveLinkMatch[1];
|
for (const archiveId of archiveLinkMatch) {
|
||||||
this.archives.makePermanent(archiveId);
|
this.archives.makePermanent(archiveId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!args.automatic || this.getConfig().log_automatic_actions) && args.postInCaseLogOverride !== false) {
|
if ((!args.automatic || this.getConfig().log_automatic_actions) && args.postInCaseLogOverride !== false) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue