From 91f0985e21546326b704c50895304ce04a78d991 Mon Sep 17 00:00:00 2001 From: Kevin Quinn Date: Fri, 13 Aug 2021 12:37:17 -0400 Subject: [PATCH] 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 +