From 91f0985e21546326b704c50895304ce04a78d991 Mon Sep 17 00:00:00 2001 From: Kevin Quinn Date: Fri, 13 Aug 2021 12:37:17 -0400 Subject: [PATCH 1/2] Fix bug in js for restoremailbox For this action it appears that the mailboxid is the itemid, and that's the only additional argument required for the underlying method `VBO::restoreMailbox()`. This surfaced as a javascript error due to the variable being undefined. --- exchange.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exchange.php b/exchange.php index b529716..ea3d9c3 100644 --- a/exchange.php +++ b/exchange.php @@ -1204,6 +1204,7 @@ function restoreToOriginal(itemid, type) { itemid = node[0].data.folderid; } else { var act = 'restoremailbox'; + var mailboxid = itemid; } var json = '{ "restoretoOriginallocation": \ @@ -1706,4 +1707,4 @@ function loadMessages(folderid, offset) { } ?> - \ No newline at end of file + From eff02ef672c94aa50368634d4821ebaeb078754d Mon Sep 17 00:00:00 2001 From: Kevin Quinn Date: Fri, 13 Aug 2021 12:45:05 -0400 Subject: [PATCH 2/2] Use tabs instead of spaces I guess --- exchange.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchange.php b/exchange.php index ea3d9c3..7181f3a 100644 --- a/exchange.php +++ b/exchange.php @@ -1204,7 +1204,7 @@ function restoreToOriginal(itemid, type) { itemid = node[0].data.folderid; } else { var act = 'restoremailbox'; - var mailboxid = itemid; + var mailboxid = itemid; } var json = '{ "restoretoOriginallocation": \