Skip to content

Commit

Permalink
[BF] Wrong mailbox count after restoring archive via @rfhsorna - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed May 16, 2020
1 parent d6f1473 commit c9fb4b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/ArchiveController.php
Expand Up @@ -477,6 +477,8 @@ public function cliRestorePendingsAction()
$this->_notifyAdmin( $archive->getArchivedBy(), "archive/email/archive-restored.txt", "Mailbox restored",
$data['mailbox']->getUsername() );

$data['mailbox']->getDomain()->setMailboxCount( $data['mailbox']->getDomain()->getMailboxCount() + 1 );

$this->getD2EM()->remove( $this->getD2EM()->getRepository( "\\Entities\\Archive" )->find( $archive->getId() ) );
$this->getD2EM()->flush();

Expand Down

0 comments on commit c9fb4b7

Please sign in to comment.