Improve deletion of aliases and propagated message master
authorJoey Schulze <joey@infodrom.org>
Sat, 7 Oct 2023 22:30:27 +0000 (00:30 +0200)
committerJoey Schulze <joey@infodrom.org>
Sat, 7 Oct 2023 22:30:27 +0000 (00:30 +0200)
class/vmail_alias.class.php

index 8704810..38abdf2 100644 (file)
@@ -112,8 +112,9 @@ class VMail_Alias extends DatabaseTable {
 
     public function ajaxDeleteAlias(Array $data)
     {
 
     public function ajaxDeleteAlias(Array $data)
     {
-       $report = $this->deleteAlias(false);
+       $domain = new VMail_Domain($this->data->vmail_domain_id);
+       $report = $this->deleteAlias(true);
 
 
-       return ['text' => sprintf("Alias %s gelöscht", $this->data->username)];
+       return ['text' => sprintf("Alias %s@%s gelöscht", $this->data->username, $domain->get('name'))];
     }
 }
     }
 }