Skip to content

Commit c9fb4b7

Browse files
committed
[BF] Wrong mailbox count after restoring archive via @rfhsorna - fixes #231
1 parent d6f1473 commit c9fb4b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

application/controllers/ArchiveController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ public function cliRestorePendingsAction()
477477
$this->_notifyAdmin( $archive->getArchivedBy(), "archive/email/archive-restored.txt", "Mailbox restored",
478478
$data['mailbox']->getUsername() );
479479

480+
$data['mailbox']->getDomain()->setMailboxCount( $data['mailbox']->getDomain()->getMailboxCount() + 1 );
481+
480482
$this->getD2EM()->remove( $this->getD2EM()->getRepository( "\\Entities\\Archive" )->find( $archive->getId() ) );
481483
$this->getD2EM()->flush();
482484

0 commit comments

Comments
 (0)