From d1d58c10313f080737dc1e71fab3beb12488a1e6 Mon Sep 17 00:00:00 2001 From: aryaantony92 <97134765+aryaantony92@users.noreply.github.com> Date: Tue, 16 May 2023 08:51:16 +0200 Subject: [PATCH] Remove password field from detals view (#469) * Remove password field from customer details * Apply php-cs-fixer changes * Update src/CustomerView/DefaultCustomerView.php Co-authored-by: Divesh Pahuja --------- Co-authored-by: aryaantony92 Co-authored-by: Divesh Pahuja --- src/CustomerView/DefaultCustomerView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CustomerView/DefaultCustomerView.php b/src/CustomerView/DefaultCustomerView.php index 4e95d3ca..8f3bdd88 100644 --- a/src/CustomerView/DefaultCustomerView.php +++ b/src/CustomerView/DefaultCustomerView.php @@ -110,7 +110,7 @@ public function getDetailviewData(CustomerInterface $customer) $vf = $this->viewFormatter; foreach ($definition->getFieldDefinitions() as $fd) { - if ($fd->getInvisible()) { + if ($fd->getInvisible() || $fd->getFieldtype() === 'password') { continue; }