projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4833557
)
Skip requirement for password when changing the current user fields
author
César
<c.jimenez@ixiam.com>
Fri, 27 May 2022 10:49:25 +0000
(12:49 +0200)
committer
César
<c.jimenez@ixiam.com>
Fri, 27 May 2022 10:50:14 +0000
(12:50 +0200)
CRM/Utils/System/Drupal8.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/System/Drupal8.php
b/CRM/Utils/System/Drupal8.php
index 61ded6086528d956bc20b1c45036be37cd20d692..df27c0d9e44a9df355f090d81ddaf813043dc396 100644
(file)
--- a/
CRM/Utils/System/Drupal8.php
+++ b/
CRM/Utils/System/Drupal8.php
@@
-114,6
+114,9
@@
class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
if ($user && $user->getEmail() != $email) {
$user->setEmail($email);
+ // Skip requirement for password when changing the current user fields
+ $user->_skipProtectedUserFieldConstraint = TRUE;
+
if (!count($user->validate())) {
$user->save();
}