diff --git a/patches/d10-3.json b/patches/d10-3.json index e1400769917b94402f6c51b3bf8a29cfe904c78f..de7a8a55018305565fce14a6e225ecfc9aeb0973 100644 --- a/patches/d10-3.json +++ b/patches/d10-3.json @@ -149,9 +149,6 @@ "drupal/menu_block": { "#3082445 Add option to always render parent menu item": "https://www.drupal.org/files/issues/2020-10-12/menu_block-render-parent-3082445-26.patch" }, - "drupal/name": { - "#3478278 Name and IEF": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3478278.diff" - }, "drupal/pdfpreview": { "#local debug": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/pdfpreview-debug.diff" }, diff --git a/patches/d10-4.json b/patches/d10-4.json index 2320c243c04b0ec41946f9bd8f2a1bf1fc0bcd65..312e6aa4247216c7f2580188d0d2e4c9ae317a8e 100644 --- a/patches/d10-4.json +++ b/patches/d10-4.json @@ -149,9 +149,6 @@ "drupal/menu_block": { "#3082445 Add option to always render parent menu item": "https://www.drupal.org/files/issues/2020-10-12/menu_block-render-parent-3082445-26.patch" }, - "drupal/name": { - "#3478278 Name and IEF": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3478278.diff" - }, "drupal/pdfpreview": { "#local debug": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/pdfpreview-debug.diff" }, diff --git a/patches/d10/3478278.diff b/patches/d10/3478278.diff deleted file mode 100644 index c8a4b163dbd7bdb17301246d63e9aadbdb3544f6..0000000000000000000000000000000000000000 --- a/patches/d10/3478278.diff +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/name.module b/name.module -index 25b1d1149d96d9597ca6f42a9edb42f3d03ea4a3..866af4d5aaa14d430b9a67bc4a9fb65112776360 100644 ---- a/name.module -+++ b/name.module -@@ -144,7 +144,8 @@ function name_user_format_name_alter_preload($account) { - $field_name = Drupal::config('name.settings')->get('user_preferred'); - if ($field_name && FieldConfig::loadByName('user', 'user', $field_name)) { - $in_preload = TRUE; -- $account = User::load($account->id()); -+ $id = $account->id(); -+ $account = $id ? User::load($id) : 'unknown'; - $in_preload = FALSE; - } - } diff --git a/patches/d11.json b/patches/d11.json index c8782437daf1728bc77bcafc8279bde1aa22b64a..1841398dfbd315942e9b94c6e090ff1fc04df0d6 100644 --- a/patches/d11.json +++ b/patches/d11.json @@ -146,9 +146,6 @@ "drupal/menu_block": { "#3082445 Add option to always render parent menu item": "https://www.drupal.org/files/issues/2020-10-12/menu_block-render-parent-3082445-26.patch" }, - "drupal/name": { - "#3478278 Name and IEF": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3478278.diff" - }, "drupal/pdfpreview": { "#local debug": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/pdfpreview-debug.diff" },