This commit is contained in:
Pinga 2023-12-25 09:23:30 +02:00
parent b8625db034
commit e5d2bd9537
6 changed files with 46 additions and 18 deletions

View file

@ -1021,7 +1021,7 @@ class ContactsController extends Controller
if ($is_linked_registrant) {
$this->container->get('flash')->addMessage('error', 'This contact is associated with a domain as a registrant');
return $response->withHeader('Location', '/hosts')->withStatus(302);
return $response->withHeader('Location', '/contacts')->withStatus(302);
}
$is_linked_other = $db->selectRow('SELECT contact_id FROM domain_contact_map WHERE contact_id = ?',
@ -1072,7 +1072,7 @@ class ContactsController extends Controller
$this->container->get('flash')->addMessage('success', 'Contact ' . $args . ' deleted successfully');
return $response->withHeader('Location', '/contacts')->withStatus(302);
} else {
// Redirect to the hosts view
// Redirect to the contacts view
return $response->withHeader('Location', '/contacts')->withStatus(302);
}
@ -1080,4 +1080,4 @@ class ContactsController extends Controller
}
}
}